A class in Root.Township, Alta.Chunks.
Chunk effect asset that sets how occlusion culling works while the local player is in the chunk: normal, portal based or off.
Constructors
| Member | What it is |
|---|
OcclusionChunkEffectData() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
| Member | What it is |
|---|
private OcclusionMode mode | The occlusion mode for the chunk. |
Methods
| Member | What it is |
|---|
override void Apply(bool isContained) | When the chunk contains the player, switches portal culling on or off by mode. None also turns off the player camera's occlusion culling. |
1 private and internal method
| Member | What it is |
|---|
private void DisableForPlayer(PlayerController playerController) | Turns off occlusion culling on the player's camera once the local player appears. |