1
0
Fork 0
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:
fig02 2024-12-13 08:12:52 -05:00 committed by GitHub
parent a897017af5
commit 016aef482b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
371 changed files with 1015 additions and 850 deletions

View file

@ -8,7 +8,7 @@
#include "assets/objects/object_bombf/object_bombf.h"
#include "overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.h"
#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_4)
#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnBombf_Init(Actor* thisx, PlayState* play);
void EnBombf_Destroy(Actor* thisx, PlayState* play);
@ -104,7 +104,7 @@ void EnBombf_Init(Actor* thisx, PlayState* play) {
thisx->focus.pos = thisx->world.pos;
if (Actor_FindNearby(play, thisx, ACTOR_BG_DDAN_KD, ACTORCAT_BG, 10000.0f) != NULL) {
thisx->flags |= ACTOR_FLAG_5;
thisx->flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
}
thisx->colChkInfo.cylRadius = 10.0f;
@ -126,8 +126,8 @@ void EnBombf_Init(Actor* thisx, PlayState* play) {
EnBombf_SetupGrowBomb(this, thisx->params);
}
thisx->uncullZoneScale += 31000.0f;
thisx->uncullZoneForward += 31000.0f;
thisx->cullingVolumeScale += 31000.0f;
thisx->cullingVolumeDistance += 31000.0f;
}
void EnBombf_Destroy(Actor* thisx, PlayState* play) {
@ -260,7 +260,7 @@ void EnBombf_Explode(EnBombf* this, PlayState* play) {
Player* player;
if (this->explosionCollider.elements[0].dim.modelSphere.radius == 0) {
this->actor.flags |= ACTOR_FLAG_5;
this->actor.flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
Rumble_Request(this->actor.xzDistToPlayer, 255, 20, 150);
}
@ -431,7 +431,7 @@ void EnBombf_Update(Actor* thisx, PlayState* play) {
Camera_RequestQuake(&play->mainCamera, 2, 11, 8);
thisx->params = BOMBFLOWER_EXPLOSION;
this->timer = 10;
thisx->flags |= ACTOR_FLAG_5;
thisx->flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
EnBombf_SetupAction(this, EnBombf_Explode);
}
}