From 12c332d801cb1e55ab686ac14dcc5f4737486f98 Mon Sep 17 00:00:00 2001 From: alandtse Date: Thu, 29 Feb 2024 18:05:14 +0000 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=8E=A8=20apply=20clang-format=20?= =?UTF-8?q?changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/Shaders/Water.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/Shaders/Water.hlsl b/package/Shaders/Water.hlsl index 699fdd5ed..d608f66b8 100644 --- a/package/Shaders/Water.hlsl +++ b/package/Shaders/Water.hlsl @@ -689,7 +689,7 @@ PS_OUTPUT main(PS_INPUT input) float3 viewPosition = mul(CameraView[eyeIndex], float4(input.WPosition.xyz, 1)).xyz; float2 screenUV = ViewToUV(viewPosition, true, eyeIndex); float depthMul = length(float3((screenUV * 2 - 1) * depth / ProjData.xy, depth)); - + float3 depthAdjustedViewDirection = -viewDirection * depthMul; float viewSurfaceAngle = dot(depthAdjustedViewDirection, ReflectPlane[eyeIndex].xyz);