diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2022-11-02 00:00:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-01 19:00:38 -0400 |
| commit | d2191a5d48b21472a2c46bec32ee9bc758abc367 (patch) | |
| tree | 57e7e3533d515bde1799f9f4b792f69de2091224 /src/code/z_play.c | |
| parent | 451e855dbc91578ac4a6a06280c7c812a0c0007b (diff) | |
Some doc on env light settings (#1307)
* remove `LightSettings` struct, typedef for zapd
* more decimal
* fog far -> z far
* `LIGHTCTX_FOGNEAR_MAX`, `LIGHTCTX_ZFAR_MAX`
* name sp88,sp8C in `Environment_Update`
* `EnvLightSettings.fogNear` -> `blendRateAndFogNear` and macros
* A different struct for `EnvironmentContext.lightSettings`
* Uniform zapd compat typedefs todos
* `LIGHTCTX_` -> `ENV_`
* Comment on `blendRateAndFogNear` + "fogFar"
* Move fogFar~1000 comment to zFar
* comment rewrite attempt
* move relevant macros down
Co-authored-by: fig02 <fig02srl@gmail.com>
Diffstat (limited to 'src/code/z_play.c')
| -rw-r--r-- | src/code/z_play.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/z_play.c b/src/code/z_play.c index f768d7a9d..64a7387b5 100644 --- a/src/code/z_play.c +++ b/src/code/z_play.c @@ -1051,7 +1051,7 @@ void Play_Draw(PlayState* this) { POLY_OPA_DISP = Play_SetFog(this, POLY_OPA_DISP); POLY_XLU_DISP = Play_SetFog(this, POLY_XLU_DISP); - View_SetPerspective(&this->view, this->view.fovy, this->view.zNear, this->lightCtx.fogFar); + View_SetPerspective(&this->view, this->view.fovy, this->view.zNear, this->lightCtx.zFar); View_Apply(&this->view, VIEW_ALL); // The billboard matrix temporarily stores the viewing matrix |
