Commit 66fee8ff authored by Joshua Ashton's avatar Joshua Ashton 🐸

[dxso] Normalize eyeRay and normal before reflection in TexM3x3Spec

parent e0b83b13
......@@ -2531,6 +2531,8 @@ void DxsoCompiler::emitControlFlowGenericLoop(
else
eyeRay = emitRegisterLoad(ctx.src[1], vec3Mask).id;
eyeRay = m_module.opNormalize(vec3Type, eyeRay);
normal = m_module.opNormalize(vec3Type, normal);
uint32_t reflection = m_module.opReflect(vec3Type, eyeRay, normal);
for (uint32_t i = 0; i < 3; 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