diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2025-06-08 03:44:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-07 22:44:20 -0400 |
| commit | 45bee14f2f24c2e7fc7c2b8030185e5d8ec96014 (patch) | |
| tree | 777ab06e121a43b77b86b04a95ff882ccd952933 /src/code/z_play.c | |
| parent | 714f43b9e9395bfe654f0c8c371157db03849d5e (diff) | |
Document fog functions Gfx_SetFog(2) and Play_SetFog (#1922)
* Document fog functions Gfx_SetFog(2) and Play_SetFog
* review
* Apply suggestions from code review
Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
---------
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
Diffstat (limited to 'src/code/z_play.c')
| -rw-r--r-- | src/code/z_play.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/code/z_play.c b/src/code/z_play.c index 590680da2..679c5b777 100644 --- a/src/code/z_play.c +++ b/src/code/z_play.c @@ -224,6 +224,10 @@ void func_800BC88C(PlayState* this) { this->transitionCtx.transitionType = -1; } +/** + * Set the environment fog, from parameters controlled by the environment system. + * If a custom fog state is used at any point in drawing, the environment fog is expected to be restored afterwards. + */ Gfx* Play_SetFog(PlayState* this, Gfx* gfx) { return Gfx_SetFog2(gfx, this->lightCtx.fogColor[0], this->lightCtx.fogColor[1], this->lightCtx.fogColor[2], 0, this->lightCtx.fogNear, 1000); |
