mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-01 19:29:16 +01:00
[dxso] Normalize eyeRay and normal before reflection in TexM3x3Spec
This commit is contained in:
parent
e0b83b13b5
commit
66fee8ff51
@ -2531,6 +2531,8 @@ void DxsoCompiler::emitControlFlowGenericLoop(
|
|||||||
else
|
else
|
||||||
eyeRay = emitRegisterLoad(ctx.src[1], vec3Mask).id;
|
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);
|
uint32_t reflection = m_module.opReflect(vec3Type, eyeRay, normal);
|
||||||
|
|
||||||
for (uint32_t i = 0; i < 3; i++)
|
for (uint32_t i = 0; i < 3; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user