diff options
| author | Olexii <[email protected]> | 2016-10-12 17:50:52 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-10-12 17:50:52 +0300 |
| commit | 49566b00c95f76ccf1bccb4bfc01084f93f3a8f6 (patch) | |
| tree | f8567544ea99f726683761b888d597317015f663 /src | |
| parent | Add DX11 test app for the TwoPassBlending feature. (diff) | |
| download | hbaoplus-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.hlsl | 2 |
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 |