MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / refresh_cull_dist

Method refresh_cull_dist

src/SB/Game/zDiscoFloor.cpp:930–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

928}
929
930void z_disco_floor::refresh_cull_dist()
931{
932 if (!tiles_size)
933 {
934 cull_dist_glow = cull_dist_update = 0.0f;
935 }
936 else
937 {
938 zLODTable* lod = zLOD_Get(tiles[0][0].ent);
939
940 if (!lod)
941 {
942 cull_dist_glow = 25.0f;
943 cull_dist_update = 100.0f;
944 }
945 else
946 {
947 cull_dist_glow = xsqrt(lod->lodDist[0]);
948 cull_dist_update = xsqrt(lod->noRenderDist);
949 }
950 }
951}
952
953void z_disco_floor::distance_cull()
954{

Callers

nothing calls this directly

Calls 2

xsqrtFunction · 0.85
zLOD_GetFunction · 0.70

Tested by

no test coverage detected