From 0993f6f25dfa1ae3e6b9891190c1ffec8aec680e Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 25 Dec 2019 18:43:51 +0000 Subject: [PATCH] [dxso] Negate reflection in TexM3x3VSpec --- src/dxso/dxso_compiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dxso/dxso_compiler.cpp b/src/dxso/dxso_compiler.cpp index 4f49838c5..c1712438e 100644 --- a/src/dxso/dxso_compiler.cpp +++ b/src/dxso/dxso_compiler.cpp @@ -2534,6 +2534,7 @@ void DxsoCompiler::emitControlFlowGenericLoop( eyeRay = m_module.opNormalize(vec3Type, eyeRay); normal = m_module.opNormalize(vec3Type, normal); uint32_t reflection = m_module.opReflect(vec3Type, eyeRay, normal); + reflection = m_module.opFNegate(vec3Type, reflection); for (uint32_t i = 0; i < 3; i++) indices[i] = m_module.opCompositeExtract(m_module.defFloatType(32), reflection, 1, &i);