From d8e8f8195e7806b8326ab928c8bb29030ca45c5c Mon Sep 17 00:00:00 2001 From: Deamon87 Date: Fri, 10 Mar 2023 20:50:14 +0200 Subject: [PATCH] fix for shader 7 --- wowViewerLib/shaders/glsl/vulkan/wmoShader.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wowViewerLib/shaders/glsl/vulkan/wmoShader.frag b/wowViewerLib/shaders/glsl/vulkan/wmoShader.frag index ec128dd4..bf2d1fb0 100644 --- a/wowViewerLib/shaders/glsl/vulkan/wmoShader.frag +++ b/wowViewerLib/shaders/glsl/vulkan/wmoShader.frag @@ -161,7 +161,7 @@ void main() { finalOpacity = tex.a; } else if (uPixelShader == 7) { //MapObjTwoLayerEnvMetal - vec4 colorMix = mix(tex, tex2, vColor2.a); + vec4 colorMix = mix(tex, tex2, 1.0 - vColor2.a); matDiffuse = colorMix.rgb ; emissive = (colorMix.rgb * colorMix.a) * tex3.rgb * distFade;