mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +00:00
Document Culling (#2318)
* document culling * format * depth -> distance * format * var name * new graph link * rephrase actor flags * tharo's comments + some more tweaks * is this causing the problem? * change wording * cant scope the temp * format * dragorn review * bad merge * player -> camera in descriptions * more its * cadmic review * goddamn it why do i have that habit * projected
This commit is contained in:
parent
a897017af5
commit
016aef482b
371 changed files with 1015 additions and 850 deletions
|
@ -16,7 +16,7 @@
|
|||
#include "assets/objects/object_ganon/object_ganon.h"
|
||||
#include "assets/objects/object_opening_demo1/object_opening_demo1.h"
|
||||
|
||||
#define FLAGS ACTOR_FLAG_4
|
||||
#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
|
||||
|
||||
void EnViewer_Init(Actor* thisx, PlayState* play);
|
||||
void EnViewer_Destroy(Actor* thisx, PlayState* play);
|
||||
|
@ -44,7 +44,7 @@ ActorProfile En_Viewer_Profile = {
|
|||
};
|
||||
|
||||
static InitChainEntry sInitChain[] = {
|
||||
ICHAIN_F32(uncullZoneScale, 300, ICHAIN_STOP),
|
||||
ICHAIN_F32(cullingVolumeScale, 300, ICHAIN_STOP),
|
||||
};
|
||||
|
||||
static EnViewerInitData sInitData[] = {
|
||||
|
@ -176,7 +176,7 @@ void EnViewer_InitImpl(EnViewer* this, PlayState* play) {
|
|||
|
||||
if (!Object_IsLoaded(&play->objectCtx, skelObjectSlot) ||
|
||||
!Object_IsLoaded(&play->objectCtx, this->animObjectSlot)) {
|
||||
this->actor.flags &= ~ACTOR_FLAG_6;
|
||||
this->actor.flags &= ~ACTOR_FLAG_INSIDE_CULLING_VOLUME;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -209,9 +209,9 @@ void EnViewer_UpdateImpl(EnViewer* this, PlayState* play) {
|
|||
}
|
||||
} else if (type == ENVIEWER_TYPE_7_GANONDORF) {
|
||||
Actor_SetScale(&this->actor, 0.3f);
|
||||
this->actor.uncullZoneForward = 10000.0f;
|
||||
this->actor.uncullZoneScale = 10000.0f;
|
||||
this->actor.uncullZoneDownward = 10000.0f;
|
||||
this->actor.cullingVolumeDistance = 10000.0f;
|
||||
this->actor.cullingVolumeScale = 10000.0f;
|
||||
this->actor.cullingVolumeDownward = 10000.0f;
|
||||
} else if (type == ENVIEWER_TYPE_3_GANONDORF) {
|
||||
if (gSaveContext.sceneLayer == 4) {
|
||||
switch (play->csCtx.curFrame) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue