1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[dxso] Normalize eyeRay and normal before reflection in TexM3x3Spec

This commit is contained in:
Joshua Ashton 2019-12-25 18:36:34 +00:00
parent e0b83b13b5
commit 66fee8ff51

View File

@ -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++)