mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 07:21:19 +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
|
@ -8,7 +8,7 @@
|
|||
#include "terminal.h"
|
||||
#include "assets/objects/object_gla/object_gla.h"
|
||||
|
||||
#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_4)
|
||||
#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
|
||||
|
||||
#define GE2_STATE_ANIMCOMPLETE (1 << 1)
|
||||
#define GE2_STATE_KO (1 << 2)
|
||||
|
@ -124,9 +124,9 @@ void EnGe2_Init(Actor* thisx, PlayState* play) {
|
|||
Actor_SetScale(&this->actor, 0.01f);
|
||||
|
||||
if (play->sceneId == SCENE_GERUDO_VALLEY) {
|
||||
this->actor.uncullZoneForward = 1000.0f;
|
||||
this->actor.cullingVolumeDistance = 1000.0f;
|
||||
} else {
|
||||
this->actor.uncullZoneForward = 1200.0f;
|
||||
this->actor.cullingVolumeDistance = 1200.0f;
|
||||
}
|
||||
|
||||
this->yDetectRange = (this->actor.world.rot.z + 1) * 40.0f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue