From 412595da29f70b6acfe9fe095031a7eb6fe9240e Mon Sep 17 00:00:00 2001 From: Fritz Koenig Date: Tue, 18 Feb 2020 11:35:15 -0800 Subject: [PATCH] Shadertoy uniform name change iGlobalTime has changed to iTime --- getshader.py | 2 +- shadertoy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/getshader.py b/getshader.py index 43fcaa6..3947327 100755 --- a/getshader.py +++ b/getshader.py @@ -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 diff --git a/shadertoy.c b/shadertoy.c index 26849dc..392ca32 100644 --- a/shadertoy.c +++ b/shadertoy.c @@ -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);