Skip to content

Commit a710ca4

Browse files
Minor changes
1 parent 1ce393b commit a710ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ inline float4 normalize(float3 n)
6868
const float4 sqr = {n.x * n.x, n.y * n.y , n.z * n.z, 0 };
6969
const float sum = sqr.x + sqr.y + sqr.z + sqr.w;
7070
const float invMag = 1.0F / std::sqrt(sum);
71-
return float4{ n.x * invMag, n.y * invMag, n.z * invMag, n.w * invMag } ;
71+
return float4{ n.x * invMag, n.y * invMag, n.z * invMag, 0 } ;
7272
}
7373
inline v4sf normalize(v4sf n)
7474
{

0 commit comments

Comments
 (0)