docs and type fixes

This commit is contained in:
Rakarake 2026-03-15 14:49:19 +01:00
parent 641953bba1
commit 4acce5525d
5 changed files with 15 additions and 8 deletions

View file

@ -45,7 +45,7 @@ const char *fragment_header_src =
"precision lowp sampler2D;\n"
"precision lowp samplerCube;\n"
"layout(location = 0) out vec4 color;\n"
"uniform vec2 iResolution;\n"
"uniform vec3 iResolution;\n"
"uniform float iTime;\n"
"uniform int iFrame;\n"
"uniform sampler2D iChannel0;\n"
@ -266,7 +266,7 @@ void render(Renderer *state, int w, int h, double time, char *shader_path, int r
glUniform3fv(uniform_iChannelResolution, state->texture_count, iChannelResolutions);
int uniform_iResolution = glGetUniformLocation(state->shader, "iResolution");
glUniform2f(uniform_iResolution, w, h);
glUniform3f(uniform_iResolution, w, h, 1.0);
int uniform_iTime = glGetUniformLocation(state->shader, "iTime");
glUniform1f(uniform_iTime, (float)time);