mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Turn off water ripples when reducevfx is on
A number of people have said they have sensory issues caused by the ripple effects from water and heat. This turns off those effects when reducevfx is on. It may be a better idea for this to be a separate option, but it's a starting point we can build upon later.
This commit is contained in:
parent
dc116bfccc
commit
53caa21b55
2 changed files with 6 additions and 2 deletions
|
|
@ -106,6 +106,10 @@ void R_InitPlanes(void)
|
||||||
// ripples da water texture
|
// ripples da water texture
|
||||||
static fixed_t R_CalculateRippleOffset(drawspandata_t* ds, INT32 y)
|
static fixed_t R_CalculateRippleOffset(drawspandata_t* ds, INT32 y)
|
||||||
{
|
{
|
||||||
|
if (cv_reducevfx.value)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
fixed_t distance = FixedMul(ds->planeheight, yslope[y]);
|
fixed_t distance = FixedMul(ds->planeheight, yslope[y]);
|
||||||
const INT32 yay = (ds->planeripple.offset + (distance>>9)) & 8191;
|
const INT32 yay = (ds->planeripple.offset + (distance>>9)) & 8191;
|
||||||
return FixedDiv(FINESINE(yay), (1<<12) + (distance>>11));
|
return FixedDiv(FINESINE(yay), (1<<12) + (distance>>11));
|
||||||
|
|
|
||||||
|
|
@ -3460,8 +3460,8 @@ void VID_DisplaySoftwareScreen()
|
||||||
uv_offset,
|
uv_offset,
|
||||||
uv_size,
|
uv_size,
|
||||||
{
|
{
|
||||||
postimgtype[i] == postimg_water,
|
postimgtype[i] == postimg_water && !cv_reducevfx.value,
|
||||||
postimgtype[i] == postimg_heat,
|
postimgtype[i] == postimg_heat && !cv_reducevfx.value,
|
||||||
postimgtype[i] == postimg_flip,
|
postimgtype[i] == postimg_flip,
|
||||||
postimgtype[i] == postimg_mirror
|
postimgtype[i] == postimg_mirror
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue