We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fe16f3 commit 9b53fafCopy full SHA for 9b53faf
src/engine/qcommon/q_shared.h
@@ -281,8 +281,16 @@ void Com_Free_Aligned( void *ptr );
281
#define M_SQRT2 1.414213562f
282
#endif
283
284
-#ifndef M_ROOT3
285
-#define M_ROOT3 1.732050808f
+#ifndef M_RSQRT2
+#define M_RSQRT2 0.707106781f
286
+#endif
287
+
288
+#ifndef M_SQRT3
289
+#define M_SQRT3 1.732050808f
290
291
292
+#ifndef M_RSQRT3
293
+#define M_RSQRT3 0.577350269f
294
295
296
#ifndef LINE_DISTANCE_EPSILON
src/engine/renderer/tr_shade_calc.cpp
@@ -495,7 +495,7 @@ static void AutospriteDeform( uint32_t numVertexes )
495
VectorCopy( backEnd.viewParms.orientation.axis[ 2 ], upDir );
496
}
497
498
- float scale = 1.0 / M_SQRT2;
+ float scale = M_RSQRT2;
499
500
if ( backEnd.currentEntity->e.nonNormalizedAxes )
501
{
0 commit comments