Shader material ECS example
This commit is contained in:
@@ -80,9 +80,23 @@ errorret_t shaderSetTextureDolphin(
|
||||
texture_t *texture
|
||||
);
|
||||
|
||||
/**
|
||||
* Sets a color uniform in the dolphin shader.
|
||||
*
|
||||
* @param shader Shader to set the color in.
|
||||
* @param name Name of the uniform to set.
|
||||
* @param color Color to set.
|
||||
* @return Error code if failure.
|
||||
*/
|
||||
errorret_t shaderSetColorDolphin(
|
||||
shaderdolphin_t *shader,
|
||||
const char_t *name,
|
||||
color_t color
|
||||
);
|
||||
|
||||
/**
|
||||
* Disposes a dolphin shader. Basically does nothing.
|
||||
*
|
||||
*
|
||||
* @param shader Shader to dispose.
|
||||
* @return Error code if failure.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user