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

Method SignbitsForPlane

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

SignbitsForPlane

(cplane_t out)

Source from the content-addressed store, hash-verified

600 * SignbitsForPlane
601 */
602 int SignbitsForPlane(cplane_t out) {
603 // for fast box on planeside test
604 int bits = 0;
605 for (int j = 0; j < 3; j++) {
606 if (out.normal[j] < 0)
607 bits |= (1 << j);
608 }
609 return bits;
610 }
611
612 /**
613 * R_SetFrustum

Callers 1

R_SetFrustumMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected