played around with color, will likely stick to textures.
Some checks failed
Build Dusk / run-tests (push) Failing after 13s
Build Dusk / build-linux (push) Failing after 15s
Build Dusk / build-psp (push) Failing after 14s
Build Dusk / build-gamecube (push) Failing after 13s
Build Dusk / build-wii (push) Failing after 14s

This commit is contained in:
2026-03-22 23:53:23 -05:00
parent c0cff40628
commit b23c4b83ae
7 changed files with 82 additions and 1 deletions

View File

@@ -203,6 +203,26 @@ errorret_t shaderSetMatrixGL(
errorOk();
}
// errorret_t shaderSetColorGL(
// shadergl_t *shader,
// const char_t *name,
// color_t color
// ) {
// assertNotNull(shader, "Shader cannot be null");
// assertStrLenMin(name, 1, "Uniform name cannot be empty");
// #ifdef DUSK_OPENGL_LEGACY
// assertUnreachable("Cannot set colors on legacy opengl.");
// #else
// GLint location;
// errorChain(shaderParamGetLocationGL(shader, name, &location));
// glUniform4f(location, color.r, color.g, color.b, color.a);
// errorChain(errorGLCheck());
// #endif
// errorOk();
// }
errorret_t shaderBindGL(shadergl_t *shader) {
#ifdef DUSK_OPENGL_LEGACY