opengl.geometry.lit_textured_x2.fragment_shader: Apply alpha value to surface_Color, when combining textures.

This commit is contained in:
Rod Kay
2023-05-04 21:40:07 +10:00
parent 4ca946531a
commit 660ca343fa

View File

@@ -108,8 +108,9 @@ main()
// surface_Color += texture (Textures [i], // surface_Color += texture (Textures [i],
// frag_Coords); // frag_Coords);
surface_Color.rgb += texture (Textures [i], surface_Color.rgb += texture (Textures [i],frag_Coords).rgb
frag_Coords).rgb * (1.0 - Fade [i]); * texture (Textures [i],frag_Coords).a
* (1.0 - Fade [i]);
surface_Color.a = max (surface_Color.a, texture (Textures [i], surface_Color.a = max (surface_Color.a, texture (Textures [i],
frag_Coords).a); frag_Coords).a);