mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +00:00
Update fixed color map for each eye, so light goggles would work in both eyes in stereo 3d modes.
This commit is contained in:
parent
1562d64580
commit
e9f03102f4
1 changed files with 2 additions and 0 deletions
|
@ -819,6 +819,8 @@ sector_t * GLSceneDrawer::RenderViewpoint (AActor * camera, GL_IRECT * bounds, f
|
||||||
stereo3dMode.SetUp();
|
stereo3dMode.SetUp();
|
||||||
for (int eye_ix = 0; eye_ix < stereo3dMode.eye_count(); ++eye_ix)
|
for (int eye_ix = 0; eye_ix < stereo3dMode.eye_count(); ++eye_ix)
|
||||||
{
|
{
|
||||||
|
if (eye_ix > 0)
|
||||||
|
SetFixedColormap(camera->player); // reiterate color map for each eye, so night vision goggles work in both eyes
|
||||||
const s3d::EyePose * eye = stereo3dMode.getEyePose(eye_ix);
|
const s3d::EyePose * eye = stereo3dMode.getEyePose(eye_ix);
|
||||||
eye->SetUp();
|
eye->SetUp();
|
||||||
GLRenderer->SetOutputViewport(bounds);
|
GLRenderer->SetOutputViewport(bounds);
|
||||||
|
|
Loading…
Reference in a new issue