Shader material ECS example

This commit is contained in:
2026-04-10 12:48:05 -05:00
parent 37cfdde1ee
commit 673d8e0a18
20 changed files with 349 additions and 64 deletions
@@ -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");