changed variable naming

This commit is contained in:
Jonas Sorgenfrei
2022-04-24 14:25:54 +02:00
parent b0e8a4c990
commit 2024ac1aee

View File

@@ -19,10 +19,10 @@ layout (location = 0) uniform float t; /**< Time */
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
void main() { void main() {
vec4 pixel = vec4(0.0, 0.0, 0.0, 1.0); vec4 value = vec4(0.0, 0.0, 0.0, 1.0);
ivec2 pixelCoord = ivec2(gl_GlobalInvocationID.xy); ivec2 texelCoord = ivec2(gl_GlobalInvocationID.xy);
float speed = 0.5; float speed = 0.5;
pixel.x = float(int((float(pixelCoord.x)/(gl_NumWorkGroups.x*gl_WorkGroupSize.x)+t*speed)*100)%100)/100; value.x = float(int((float(texelCoord.x)/(gl_NumWorkGroups.x)+t*speed)*100)%100)/100;
pixel.y = float(pixelCoord.y)/(gl_NumWorkGroups.y*gl_WorkGroupSize.y); value.y = float(texelCoord.y)/(gl_NumWorkGroups.y);
imageStore(imgOutput, pixelCoord, pixel); imageStore(imgOutput, texelCoord, value);
} }