Remove OBJECTS_REJ and clean up core render func (By Fazana) (#735)
* crowd pleaser * Fix debug boxes * fix comments * renamed temp graphics head to be consistent --------- Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>
This commit is contained in:
1 parent
76dae5e8dd
commit
9fc928ed70
11 files changed
+75
-282
No files matched your search
@@ -50,11 +50,6 @@ void obj_update_gfx_pos_and_angle(struct Object *obj) {
|
||||
#define OBJ_OPACITY_LENGTH 512.0f
|
||||
void obj_set_opacity_from_cam_dist(struct Object *obj) {
|
||||
s32 opacityDist = ((-obj->header.gfx.cameraToObject[2] - OBJ_OPACITY_NEAR) * (256.0f / OBJ_OPACITY_LENGTH));
|
||||
#ifdef OBJECTS_REJ
|
||||
if (opacityDist > 0) {
|
||||
obj->header.gfx.ucode = GRAPH_NODE_UCODE_REJ;
|
||||
}
|
||||
#endif
|
||||
obj->oOpacity = CLAMP(opacityDist, 0x00, 0xFF);
|
||||
}
|
||||
#undef OBJ_OPACITY_NEAR
|
||||
@@ -910,14 +905,6 @@ void cur_obj_update(void) {
|
||||
COND_BIT((objFlags & OBJ_FLAG_OCCLUDE_SILHOUETTE), o->header.gfx.node.flags, GRAPH_RENDER_OCCLUDE_SILHOUETTE);
|
||||
#endif
|
||||
|
||||
#ifdef OBJECTS_REJ
|
||||
if ((objFlags & OBJ_FLAG_SILHOUETTE) || (objFlags & OBJ_FLAG_UCODE_SMALL)) {
|
||||
o->header.gfx.ucode = GRAPH_NODE_UCODE_REJ;
|
||||
} else {
|
||||
o->header.gfx.ucode = GRAPH_NODE_UCODE_DEFAULT;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef OBJ_OPACITY_BY_CAM_DIST
|
||||
if (objFlags & OBJ_FLAG_OPACITY_FROM_CAMERA_DIST) {
|
||||
obj_set_opacity_from_cam_dist(o);
|
||||
|
||||
Reference in new issue
Block a user