16 s32 maxObjectsReached;
25 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
26 distance =
MAX(distance, 0.0f);
29 if (distance < 0.0f) {
33 if (CVarGetInteger(
"gDisableLod", 1) == 1) {
41 if (maxObjectsReached) {
45 if (distance < 122500.0f) {
50 }
else if (distance < 640000.0f) {
58 if (1440000.0f < distance) {
71 if (maxObjectsReached) {
84 if (maxObjectsReached) {
97 if (maxObjectsReached) {
110 if (maxObjectsReached) {
123 if (maxObjectsReached) {
136 if (maxObjectsReached) {
149 if (maxObjectsReached) {
162 if (maxObjectsReached) {
180 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
181 temp_f0 =
MAX(temp_f0, 0.0f);
184 if (temp_f0 < 0.0f) {
188 if (CVarGetInteger(
"gDisableLod", 1) == 1) {
199 if (temp_f0 < 250000.0f) {
203 }
else if (temp_f0 < 1000000.0f) {
208 if (1440000.0f < temp_f0) {
273 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
274 temp_f0 =
MAX(temp_f0, 0.0f);
277 if (temp_f0 < 0.0f) {
281 if (CVarGetInteger(
"gDisableLod", 1) == 1) {
293 if (temp_f0 < 250000.0f) {
298 }
else if (temp_f0 < 1000000.0f) {
306 if (1440000.0f < temp_f0) {
f32 is_within_render_distance(Vec3f cameraPos, Vec3f objectPos, u16 orientationY, f32 minDistance, f32 fov, f32 maxDistance)
Definition math_util.c:1100
void vec3f_set(Vec3f arg0, f32 arg1, f32 arg2, f32 arg3)
Definition math_util.c:114
void render_actor_train_engine(Camera *camera, struct TrainCar *actor)
Renders the train engine actor. Actor used in Kalimari Desert. His update position are made in vehicl...
Definition render.inc.c:14