Small refactoring into variable_layer_height.fs shader

This commit is contained in:
enricoturri1966 2021-04-28 16:04:24 +02:00
parent a3f03ac188
commit 628af89c4a

View file

@ -36,5 +36,5 @@ void main()
texture2D(z_texture, vec2(z_texture_col, z_texture_row_to_normalized * (z_texture_row * 2. + 1.)), 10000.), lod);
// Mix the final color.
gl_FragColor = vec4(intensity.y, intensity.y, intensity.y, 1.0) + intensity.x * mix(color, vec4(1.0, 1.0, 0.0, 1.0), z_blend);
gl_FragColor = vec4(vec3(intensity.y), 1.0) + intensity.x * mix(color, vec4(1.0, 1.0, 0.0, 1.0), z_blend);
}