From 49566b00c95f76ccf1bccb4bfc01084f93f3a8f6 Mon Sep 17 00:00:00 2001 From: Olexii Date: Wed, 12 Oct 2016 17:50:52 +0300 Subject: arguments for RotateDirection were swapped Doesn't cause a bug, but mislead the reader --- src/shaders/src/CoarseAO_PS.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3