Skip to content

Commit

Permalink
style: 🎨 apply clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Mar 4, 2024
1 parent bf7992b commit 12c332d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/Shaders/Water.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 12c332d

Please sign in to comment.