Commit 0993f6f2 authored by Joshua Ashton's avatar Joshua Ashton 🐸

[dxso] Negate reflection in TexM3x3VSpec

parent 66fee8ff
Pipeline #979 passed with stage
in 4 minutes and 6 seconds
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment