MCPcopy Create free account
hub / github.com/demoth/jake2 / R_CullBox

Method R_CullBox

client/src/main/java/jake2/client/render/fast/Main.java:239–250  ·  view source on GitHub ↗

R_CullBox Returns true if the box is completely outside the frustum

(float[] mins, float[] maxs)

Source from the content-addressed store, hash-verified

237 * Returns true if the box is completely outside the frustum
238 */
239 final boolean R_CullBox(float[] mins, float[] maxs) {
240 assert(mins.length == 3 && maxs.length == 3) : "vec3_t bug";
241
242 if (r_nocull.value != 0)
243 return false;
244
245 for (int i = 0; i < 4; i++) {
246 if (Math3D.BoxOnPlaneSide(mins, maxs, frustum[i]) == 2)
247 return true;
248 }
249 return false;
250 }
251
252 /**
253 * R_RotateForEntity

Callers 2

R_DrawBrushModelMethod · 0.80
R_RecursiveWorldNodeMethod · 0.80

Calls 1

BoxOnPlaneSideMethod · 0.95

Tested by

no test coverage detected