give leaves a sprinkle of color

pull/6/head
EmaMaker 2023-07-28 16:39:24 +02:00
parent b0cf413baf
commit 83f0aafba0
1 changed files with 1 additions and 0 deletions

View File

@ -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);