32 printf(
"[render_actor_item_box] Could not find item box for FI, skipping!\n");
40 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
41 temp_f0 =
CLAMP(temp_f0, 0.0f, 600000.0f);
43 if (!(temp_f0 < 0.0f) && !(600000.0f < temp_f0)) {
44 if ((item_box->
state == 2) && (temp_f0 < 100000.0f)) {
46 someRot[1] = item_box->
rot[1];
48 someVec2[0] = item_box->
pos[0];
50 someVec2[2] = item_box->
pos[2];
65 someRot[1] = item_box->
rot[1] * 2;
66 someVec2[1] = item_box->
pos[1];
78 if (item_box->
state == 5) {
90 if (item_box->
state != 3) {
108 if ((item_box->
rot[1] < 0xAA1) && (item_box->
rot[1] > 0)) {
109 gDPSetRenderMode(
gDisplayListHead++, G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2);
110 }
else if ((item_box->
rot[1] >= 0x6AA5) && (item_box->
rot[1] < 0x754E)) {
111 gDPSetRenderMode(
gDisplayListHead++, G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2);
112 }
else if ((item_box->
rot[1] >= 0x38E1) && (item_box->
rot[1] < 0x438A)) {
113 gDPSetRenderMode(
gDisplayListHead++, G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2);
114 }
else if ((item_box->
rot[1] >= 0xC711) && (item_box->
rot[1] < 0xD1BA)) {
115 gDPSetRenderMode(
gDisplayListHead++, G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2);
135 someMultiplier = 1.0f;
137 someMultiplier = 1.0f - ((thing - 10.0f) * 0.1f);
141 gDPSetRenderMode(
gDisplayListHead++, G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2);
145 temp_f2 = 2.0f * thing;
147 someVec1[1] = temp_f2;
160 temp_f2_2 = 0.8f * thing;
161 temp_f12 = 0.5f * thing;
162 someVec1[0] = temp_f2_2;
163 someVec1[1] = 2.3f * thing;
164 someVec1[2] = temp_f12;
176 temp_f0_2 = -0.5f * thing;
177 someVec1[0] = temp_f2_2;
178 someVec1[1] = 1.2f * thing;
179 someVec1[2] = temp_f0_2;
194 gDPSetRenderMode(
gDisplayListHead++, G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2);
199 someVec1[1] = 1.8f * thing;
200 someVec1[2] = -1.0f * thing;
213 temp_f0_3 = -0.8f * thing;
214 someVec1[0] = temp_f0_3;
215 someVec1[1] = 0.6f * thing;
216 someVec1[2] = temp_f0_2;
229 someVec1[0] = temp_f0_3;
230 someVec1[1] = temp_f2;
231 someVec1[2] = temp_f12;
void render_actor_item_box(Camera *camera, struct ItemBox *item_box)
Renders the item box actor.
Definition render.inc.c:12
f32 is_within_render_distance(Vec3f cameraPos, Vec3f objectPos, u16 orientationY, f32 minDistance, f32 fov, f32 maxDistance)
Definition math_util.c:1099