mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 11:09:43 +00:00
shader-based object texture blending
This commit is contained in:
parent
23e279c23e
commit
d5cba38f4b
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ void main()
|
||||||
|
|
||||||
#if @decalMap
|
#if @decalMap
|
||||||
vec4 decalTex = texture2D(decalMap, decalMapUV);
|
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
|
#endif
|
||||||
|
|
||||||
#if @envMap
|
#if @envMap
|
||||||
|
|
Loading…
Reference in a new issue