Testing some crap

This commit is contained in:
2022-10-30 00:39:07 -07:00
parent 37eaa706b7
commit 928b4b5447
19 changed files with 264 additions and 20 deletions

View File

@ -14,7 +14,8 @@ namespace Dawn {
SHADER_PARAMETER_TYPE_BOOLEAN,
SHADER_PARAMETER_TYPE_COLOR,
SHADER_PARAMETER_TYPE_VECTOR3,
SHADER_PARAMETER_TYPE_TEXTURE
SHADER_PARAMETER_TYPE_TEXTURE,
SHADER_PARAMETER_TYPE_FLOAT
};
template<typename T>
@ -102,5 +103,13 @@ namespace Dawn {
* @param texture Texture to bind to the parameter.
*/
virtual void setTexture(T parameter, Texture *texture) = 0;
/**
* Sets a floating point value to the shader.
*
* @param parameter Paramater to set the float ont o.
* @param float Float to bind.
*/
virtual void setFloat(T parameter, float_t value) = 0;
};
}