Shader material ECS example
This commit is contained in:
@@ -159,6 +159,20 @@ errorret_t shaderSetTextureDolphin(
|
||||
errorOk();
|
||||
}
|
||||
|
||||
errorret_t shaderSetColorDolphin(
|
||||
shaderdolphin_t *shader,
|
||||
const char_t *name,
|
||||
color_t color
|
||||
) {
|
||||
assertNotNull(shader, "Shader must not be null");
|
||||
assertNotNull(name, "Uniform name must not be null");
|
||||
assertStrLenMin(name, 1, "Uniform name cannot be empty");
|
||||
|
||||
GX_SetChanMatColor(GX_COLOR0A0, (GXColor){ color.r, color.g, color.b, color.a });
|
||||
|
||||
errorOk();
|
||||
}
|
||||
|
||||
errorret_t shaderDisposeDolphin(shaderdolphin_t *shader) {
|
||||
assertNotNull(shader, "Shader must not be null");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user