mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-05 13:20:56 +00:00
- force the renderer to use radial fog.
Plane-distance based fog does not work with Polymost's projection settings - the distance value appears to be completely off and useless. Fixes #243
This commit is contained in:
parent
dc0968bf61
commit
d6b80bda52
1 changed files with 4 additions and 5 deletions
|
@ -1264,11 +1264,14 @@ void set_globalang(fixed_t const ang)
|
||||||
//
|
//
|
||||||
// drawrooms
|
// drawrooms
|
||||||
//
|
//
|
||||||
|
EXTERN_CVAR(Int, gl_fogmode)
|
||||||
int32_t renderDrawRoomsQ16(int32_t daposx, int32_t daposy, int32_t daposz,
|
int32_t renderDrawRoomsQ16(int32_t daposx, int32_t daposy, int32_t daposz,
|
||||||
fixed_t daang, fixed_t dahoriz, int16_t dacursectnum)
|
fixed_t daang, fixed_t dahoriz, int16_t dacursectnum)
|
||||||
{
|
{
|
||||||
int32_t i;
|
int32_t i;
|
||||||
|
|
||||||
|
if (gl_fogmode == 1) gl_fogmode = 2; // only radial fog works with Build's screwed up coordinate system.
|
||||||
|
|
||||||
set_globalpos(daposx, daposy, daposz);
|
set_globalpos(daposx, daposy, daposz);
|
||||||
set_globalang(daang);
|
set_globalang(daang);
|
||||||
|
|
||||||
|
@ -1286,11 +1289,7 @@ int32_t renderDrawRoomsQ16(int32_t daposx, int32_t daposy, int32_t daposz,
|
||||||
|
|
||||||
Bmemset(gotsector, 0, sizeof(gotsector));
|
Bmemset(gotsector, 0, sizeof(gotsector));
|
||||||
|
|
||||||
if (videoGetRenderMode() != REND_CLASSIC
|
i = xdimen-1;
|
||||||
)
|
|
||||||
{
|
|
||||||
i = xdimen-1;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < numwalls; ++i)
|
for (int i = 0; i < numwalls; ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue