give leaves a sprinkle of color
parent
b0cf413baf
commit
83f0aafba0
|
@ -23,6 +23,7 @@ void main(){
|
||||||
// Load the texture
|
// Load the texture
|
||||||
// anti-gamma-correction of the texture. Without this it would be gamma corrected twice!
|
// anti-gamma-correction of the texture. Without this it would be gamma corrected twice!
|
||||||
vec3 vColor = pow(texture(textureArray, TexCoord).rgb, vec3(gamma));
|
vec3 vColor = pow(texture(textureArray, TexCoord).rgb, vec3(gamma));
|
||||||
|
if(TexCoord.z == 4) vColor = vColor * normalize(vec3(10, 250, 10));
|
||||||
|
|
||||||
vec3 normal = normalize(Normal);
|
vec3 normal = normalize(Normal);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue