1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

shader-based object texture blending

This commit is contained in:
glassmancody.info 2021-12-30 17:08:29 -08:00
parent 23e279c23e
commit d5cba38f4b

View File

@ -146,7 +146,7 @@ void main()
#if @decalMap
vec4 decalTex = texture2D(decalMap, decalMapUV);
gl_FragData[0].xyz = mix(gl_FragData[0].xyz, decalTex.xyz, decalTex.a);
gl_FragData[0].xyz = mix(gl_FragData[0].xyz, decalTex.xyz, decalTex.a * diffuseColor.a);
#endif
#if @envMap