mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-25 22:10:59 +00:00
Fixed gl1_overbrightbits limiter
Allows values between 0 and 4. Updated documentation.
This commit is contained in:
parent
5c642b6a5b
commit
fa218c9f4c
2 changed files with 9 additions and 5 deletions
|
@ -287,6 +287,7 @@ Set `0` by default.
|
||||||
|
|
||||||
* **cl_audiopaused**: If set to `1` the sounds pause when the game does.
|
* **cl_audiopaused**: If set to `1` the sounds pause when the game does.
|
||||||
|
|
||||||
|
|
||||||
## Graphics (all renderers)
|
## Graphics (all renderers)
|
||||||
|
|
||||||
* **cin_force43**: If set to `1` (the default) cinematics are displayed
|
* **cin_force43**: If set to `1` (the default) cinematics are displayed
|
||||||
|
@ -436,6 +437,7 @@ Set `0` by default.
|
||||||
Other supported values: `GL_NEAREST_MIPMAP_NEAREST`,
|
Other supported values: `GL_NEAREST_MIPMAP_NEAREST`,
|
||||||
`GL_NEAREST_MIPMAP_LINEAR`, `GL_LINEAR_MIPMAP_LINEAR`
|
`GL_NEAREST_MIPMAP_LINEAR`, `GL_LINEAR_MIPMAP_LINEAR`
|
||||||
|
|
||||||
|
|
||||||
## Graphics (OpenGL 1.4 only)
|
## Graphics (OpenGL 1.4 only)
|
||||||
|
|
||||||
* **gl1_intensity**: Sets the color intensity. Must be a floating point
|
* **gl1_intensity**: Sets the color intensity. Must be a floating point
|
||||||
|
@ -445,8 +447,9 @@ Set `0` by default.
|
||||||
* **gl1_overbrightbits**: Enables overbright bits, brightness scaling of
|
* **gl1_overbrightbits**: Enables overbright bits, brightness scaling of
|
||||||
lightmaps and models. Higher values make shadows less dark. Possible
|
lightmaps and models. Higher values make shadows less dark. Possible
|
||||||
values are `0` (no overbright bits), `1` (more correct lighting for
|
values are `0` (no overbright bits), `1` (more correct lighting for
|
||||||
water), `2` (scale by factor 2) and `3` (scale by factor 3). Applied
|
water), `2` (scale by factor 2), `3` (scale lighting by 3 only for the
|
||||||
in realtime, does not need `vid_restart`.
|
dynamic meshes, like enemies and items), and `4` (scale lighting of
|
||||||
|
everything by 4). Applied in realtime, does not need `vid_restart`.
|
||||||
|
|
||||||
* **gl1_particle_square**: If set to `1` particles are rendered as
|
* **gl1_particle_square**: If set to `1` particles are rendered as
|
||||||
squares.
|
squares.
|
||||||
|
@ -589,6 +592,7 @@ Set `0` by default.
|
||||||
`0`: Rumble feedback,
|
`0`: Rumble feedback,
|
||||||
`1`: Haptic feedback.
|
`1`: Haptic feedback.
|
||||||
|
|
||||||
|
|
||||||
## cvar operations
|
## cvar operations
|
||||||
|
|
||||||
cvar operations are special commands that allow the programmatic
|
cvar operations are special commands that allow the programmatic
|
||||||
|
|
|
@ -1616,13 +1616,13 @@ RI_BeginFrame(float camera_separation)
|
||||||
// Clamp overbrightbits
|
// Clamp overbrightbits
|
||||||
if (gl1_overbrightbits->modified)
|
if (gl1_overbrightbits->modified)
|
||||||
{
|
{
|
||||||
if (gl1_overbrightbits->value > 2 && gl1_overbrightbits->value < 4)
|
if (gl1_overbrightbits->value < 0)
|
||||||
{
|
{
|
||||||
ri.Cvar_Set("r_overbrightbits", "2");
|
ri.Cvar_Set("gl1_overbrightbits", "0");
|
||||||
}
|
}
|
||||||
else if (gl1_overbrightbits->value > 4)
|
else if (gl1_overbrightbits->value > 4)
|
||||||
{
|
{
|
||||||
ri.Cvar_Set("r_overbrightbits", "4");
|
ri.Cvar_Set("gl1_overbrightbits", "4");
|
||||||
}
|
}
|
||||||
|
|
||||||
gl1_overbrightbits->modified = false;
|
gl1_overbrightbits->modified = false;
|
||||||
|
|
Loading…
Reference in a new issue