aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shaders/src/CoarseAO_PS.hlsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shaders/src/CoarseAO_PS.hlsl b/src/shaders/src/CoarseAO_PS.hlsl
index ffcd14c..8df2a46 100644
--- a/src/shaders/src/CoarseAO_PS.hlsl
+++ b/src/shaders/src/CoarseAO_PS.hlsl
@@ -152,7 +152,7 @@ float ComputeCoarseAO(float2 FullResUV, float3 ViewPosition, float3 ViewNormal,
float Angle = Alpha * DirectionIndex;
// Compute normalized 2D direction
- float2 Direction = RotateDirection(float2(cos(Angle), sin(Angle)), Rand.xy);
+ float2 Direction = RotateDirection(Rand.xy, float2(cos(Angle), sin(Angle)));
#if API_GL
// To match the reference D3D11 implementation