Skip to content

Commit 4ff4427

Browse files
committed
renderer: faster other R_CalcTangents() with VectorNormalizeFast()
1 parent 39c25ac commit 4ff4427

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
@@ -135,8 +135,8 @@ void R_CalcTangents( vec3_t tangent, vec3_t binormal,
135135
binormal[1] = dtx[0] * dpy[1] - dpx[1] * dty[0];
136136
binormal[2] = dtx[0] * dpy[2] - dpx[2] * dty[0];
137137

138-
VectorNormalize( tangent );
139-
VectorNormalize( binormal );
138+
VectorNormalizeFast( tangent );
139+
VectorNormalizeFast( binormal );
140140
}
141141

142142

0 commit comments

Comments
 (0)