From 83f0aafba0f2d8d8e2576d10c6bc749f57b1fcec Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Fri, 28 Jul 2023 16:39:24 +0200 Subject: [PATCH] give leaves a sprinkle of color --- shaders/shader-texture.fs | 1 + 1 file changed, 1 insertion(+) diff --git a/shaders/shader-texture.fs b/shaders/shader-texture.fs index cd854e3..9794267 100644 --- a/shaders/shader-texture.fs +++ b/shaders/shader-texture.fs @@ -23,6 +23,7 @@ void main(){ // Load the texture // anti-gamma-correction of the texture. Without this it would be gamma corrected twice! vec3 vColor = pow(texture(textureArray, TexCoord).rgb, vec3(gamma)); + if(TexCoord.z == 4) vColor = vColor * normalize(vec3(10, 250, 10)); vec3 normal = normalize(Normal);