aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOlexii <[email protected]>2016-10-12 17:50:52 +0300
committerGitHub <[email protected]>2016-10-12 17:50:52 +0300
commit49566b00c95f76ccf1bccb4bfc01084f93f3a8f6 (patch)
treef8567544ea99f726683761b888d597317015f663 /src
parentAdd DX11 test app for the TwoPassBlending feature. (diff)
downloadhbaoplus-49566b00c95f76ccf1bccb4bfc01084f93f3a8f6.tar.xz
hbaoplus-49566b00c95f76ccf1bccb4bfc01084f93f3a8f6.zip
arguments for RotateDirection were swapped
Doesn't cause a bug, but mislead the reader
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