Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package/Shaders/ISSAOComposite.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ PS_OUTPUT main(PS_INPUT input)
# endif
# if defined(EXP_HEIGHT_FOG)
uint eyeIndex = Stereo::GetEyeIndexFromTexCoord(input.TexCoord.xy);
float4 positionWS = float4(2 * float2(input.TexCoord.x, -input.TexCoord.y + 1) - 1, depth, 1);
float2 monoUV = Stereo::ConvertFromStereoUV(input.TexCoord.xy, eyeIndex);
float4 positionWS = float4(2 * float2(monoUV.x, -monoUV.y + 1) - 1, depth, 1);
positionWS = mul(FrameBuffer::CameraViewProjInverse[eyeIndex], positionWS);
positionWS.xyz = positionWS.xyz / positionWS.w;
if (SharedData::exponentialHeightFogSettings.enabled) {
Expand Down
Loading