From d5cba38f4bb7f19a61347e0883c561cfaaeb46b2 Mon Sep 17 00:00:00 2001 From: "glassmancody.info" Date: Thu, 30 Dec 2021 17:08:29 -0800 Subject: [PATCH] shader-based object texture blending --- files/shaders/objects_fragment.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/shaders/objects_fragment.glsl b/files/shaders/objects_fragment.glsl index 99ed44919b..6e8d929569 100644 --- a/files/shaders/objects_fragment.glsl +++ b/files/shaders/objects_fragment.glsl @@ -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