From b1dbe7bc02bdc422fabebe30d82cd4e625d6c3b2 Mon Sep 17 00:00:00 2001 From: lbavoil Date: Tue, 6 Dec 2016 10:21:06 +0100 Subject: Polish HLSL. No functional change. --- src/shaders/src/CoarseAO_PS.hlsl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/shaders/src/CoarseAO_PS.hlsl b/src/shaders/src/CoarseAO_PS.hlsl index 4854acb..b884f47 100644 --- a/src/shaders/src/CoarseAO_PS.hlsl +++ b/src/shaders/src/CoarseAO_PS.hlsl @@ -64,13 +64,13 @@ float3 FetchQuarterResViewPos(float2 UV) } //---------------------------------------------------------------------------------- -float2 RotateDirection(float2 Direction, float2 RotationCosSin) +float2 RotateDirection(float2 V, float2 RotationCosSin) { - // Dir is the normalized 2D direction to be rotated + // V is the normalized 2D vector to be rotated // RotationCosSin is (cos(alpha),sin(alpha)) where alpha is the rotation angle // A 2D rotation matrix is applied (see https://en.wikipedia.org/wiki/Rotation_matrix) - return float2(Direction.x*RotationCosSin.x - Direction.y*RotationCosSin.y, - Direction.x*RotationCosSin.y + Direction.y*RotationCosSin.x); + return float2(V.x*RotationCosSin.x - V.y*RotationCosSin.y, + V.x*RotationCosSin.y + V.y*RotationCosSin.x); } //---------------------------------------------------------------------------------- -- cgit v1.2.3