mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxso] Negate reflection in TexM3x3VSpec
This commit is contained in:
parent
66fee8ff51
commit
0993f6f25d
@ -2534,6 +2534,7 @@ void DxsoCompiler::emitControlFlowGenericLoop(
|
|||||||
eyeRay = m_module.opNormalize(vec3Type, eyeRay);
|
eyeRay = m_module.opNormalize(vec3Type, eyeRay);
|
||||||
normal = m_module.opNormalize(vec3Type, normal);
|
normal = m_module.opNormalize(vec3Type, normal);
|
||||||
uint32_t reflection = m_module.opReflect(vec3Type, eyeRay, normal);
|
uint32_t reflection = m_module.opReflect(vec3Type, eyeRay, normal);
|
||||||
|
reflection = m_module.opFNegate(vec3Type, reflection);
|
||||||
|
|
||||||
for (uint32_t i = 0; i < 3; i++)
|
for (uint32_t i = 0; i < 3; i++)
|
||||||
indices[i] = m_module.opCompositeExtract(m_module.defFloatType(32), reflection, 1, &i);
|
indices[i] = m_module.opCompositeExtract(m_module.defFloatType(32), reflection, 1, &i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user