| 928 | } |
| 929 | |
| 930 | void 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 | |
| 953 | void z_disco_floor::distance_cull() |
| 954 | { |