clean up automapaper shaders

This commit is contained in:
Noa Aarts 2024-03-19 22:47:40 +01:00
parent 8c8a31cca0
commit 8f96e80248
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ void main( void ) {
vec2 position = gl_FragCoord.xy; vec2 position = gl_FragCoord.xy;
float color = gold_noise(position.xy, fract(time)); float color = gold_noise(position.xy, fract(time));
stateColor = vec4(step(0.3, color), 0,0,step(0.3, color)); stateColor = vec4(step(0.3, color), 0,0,step(0.3, color));
} }

View file

@ -28,7 +28,7 @@ void main() {
if (current.r == 0.0) { if (current.r == 0.0) {
stateColor.g = max(current.g - 0.01, 0.0); stateColor.g = max(current.g - 0.01, 0.0);
} }
} else { } else {
stateColor = vec4(0.0, max(current.g - 0.01, 0.0), 0.0, 1.0); stateColor = vec4(0.0, max(current.g - 0.01, 0.0), 0.0, 1.0);
} }