Skip to content

Commit 39c25ac

Browse files
committed
renderer: faster Tess_SurfacePolychain() with VectorNormalizeFast() in R_CalcTangents()
1 parent 01841d0 commit 39c25ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/engine/renderer/tr_main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ void R_CalcTangents( vec3_t tangent, vec3_t binormal,
9494
binormal[1] = dtx[0] * dpy[1] - dpx[1] * dty[0];
9595
binormal[2] = dtx[0] * dpy[2] - dpx[2] * dty[0];
9696

97-
VectorNormalize( tangent );
98-
VectorNormalize( binormal );
97+
VectorNormalizeFast( tangent );
98+
VectorNormalizeFast( binormal );
9999
}
100100

101101
void R_CalcTangents( vec3_t tangent, vec3_t binormal,

0 commit comments

Comments
 (0)