Fix silhouette
This commit is contained in:
1 parent
bd9165686d
commit
59d609fb07
11 files changed
+49
-46
No files matched your search
@@ -981,11 +981,17 @@ void cur_obj_update(void) {
|
||||
obj_update_gfx_pos_and_angle(gCurrentObject);
|
||||
}
|
||||
|
||||
if (objFlags & OBJ_FLAG_UCODE_LARGE) {
|
||||
gCurrentObject->header.gfx.node.flags &= ~GRAPH_RENDER_UCODE_REJ;
|
||||
} else {
|
||||
gCurrentObject->header.gfx.node.flags |= GRAPH_RENDER_UCODE_REJ;
|
||||
}
|
||||
|
||||
if (objFlags & OBJ_FLAG_UCODE_LARGE)
|
||||
gCurrentObject->header.gfx.uCode = UCODE_DEFAULT;
|
||||
else
|
||||
gCurrentObject->header.gfx.uCode = UCODE_REJ;
|
||||
if (objFlags & OBJ_FLAG_SILHOUETTE) {
|
||||
gCurrentObject->header.gfx.node.flags |= GRAPH_RENDER_SILHOUETTE;
|
||||
} else {
|
||||
gCurrentObject->header.gfx.node.flags &= ~GRAPH_RENDER_SILHOUETTE;
|
||||
}
|
||||
|
||||
#ifdef PUPPYLIGHTS
|
||||
puppylights_object_emit(gCurrentObject);
|
||||
|
||||
@@ -9,15 +9,14 @@
|
||||
#include "geo_commands.h"
|
||||
#include "game/memory.h"
|
||||
|
||||
#define UCODE_DEFAULT 0
|
||||
#define UCODE_REJ 1
|
||||
|
||||
#define GRAPH_RENDER_ACTIVE (1 << 0)
|
||||
#define GRAPH_RENDER_CHILDREN_FIRST (1 << 1)
|
||||
#define GRAPH_RENDER_BILLBOARD (1 << 2)
|
||||
#define GRAPH_RENDER_Z_BUFFER (1 << 3)
|
||||
#define GRAPH_RENDER_INVISIBLE (1 << 4)
|
||||
#define GRAPH_RENDER_HAS_ANIMATION (1 << 5)
|
||||
#define GRAPH_RENDER_UCODE_REJ (1 << 6)
|
||||
#define GRAPH_RENDER_SILHOUETTE (1 << 7)
|
||||
|
||||
// Whether the node type has a function pointer of type GraphNodeFunc
|
||||
#define GRAPH_NODE_TYPE_FUNCTIONAL 0x100
|
||||
|
||||
Reference in new issue
Block a user