Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadertoy uniform name change #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion getshader.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

shaderdecls = """
uniform vec3 iResolution; // viewport resolution (in pixels)
uniform float iGlobalTime; // shader playback time (in seconds)
uniform float iTime; // shader playback time (in seconds)
uniform float iChannelTime[4]; // channel playback time (in seconds)
uniform vec3 iChannelResolution[4]; // channel resolution (in pixels)
uniform vec4 iMouse; // mouse pixel coords. xy: current (if MLB down), zw: click
Expand Down
2 changes: 1 addition & 1 deletion shadertoy.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ display (void)
frames = 0;
}

uindex = glGetUniformLocation (prog, "iGlobalTime");
uindex = glGetUniformLocation (prog, "iTime");
if (uindex >= 0)
glUniform1f (uindex, ((float) ticks) / 1000.0);

Expand Down