mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 04:12:39 +00:00
Add color combination green-magenta for anaglyph
This commit is contained in:
parent
fd0d156338
commit
3ecd92ed91
2 changed files with 22 additions and 10 deletions
3
README
3
README
|
@ -245,8 +245,9 @@ New cvars
|
||||||
red-cyan glasses: 1
|
red-cyan glasses: 1
|
||||||
red-blue: 2
|
red-blue: 2
|
||||||
red-green: 3
|
red-green: 3
|
||||||
|
green-magenta: 4
|
||||||
To swap the colors for left and right eye
|
To swap the colors for left and right eye
|
||||||
just add 3 to the value for the wanted
|
just add 4 to the value for the wanted
|
||||||
color combination. For red-blue and
|
color combination. For red-blue and
|
||||||
red-green you probably want to enable
|
red-green you probably want to enable
|
||||||
r_greyscale
|
r_greyscale
|
||||||
|
|
|
@ -297,7 +297,8 @@ void RE_StretchPic ( float x, float y, float w, float h,
|
||||||
#define MODE_RED_CYAN 1
|
#define MODE_RED_CYAN 1
|
||||||
#define MODE_RED_BLUE 2
|
#define MODE_RED_BLUE 2
|
||||||
#define MODE_RED_GREEN 3
|
#define MODE_RED_GREEN 3
|
||||||
#define MODE_MAX MODE_RED_GREEN
|
#define MODE_GREEN_MAGENTA 4
|
||||||
|
#define MODE_MAX MODE_GREEN_MAGENTA
|
||||||
|
|
||||||
void R_SetColorMode(GLboolean *rgba, stereoFrame_t stereoFrame, int colormode)
|
void R_SetColorMode(GLboolean *rgba, stereoFrame_t stereoFrame, int colormode)
|
||||||
{
|
{
|
||||||
|
@ -313,6 +314,15 @@ void R_SetColorMode(GLboolean *rgba, stereoFrame_t stereoFrame, int colormode)
|
||||||
colormode -= MODE_MAX;
|
colormode -= MODE_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(colormode == MODE_GREEN_MAGENTA)
|
||||||
|
{
|
||||||
|
if(stereoFrame == STEREO_LEFT)
|
||||||
|
rgba[0] = rgba[2] = GL_FALSE;
|
||||||
|
else if(stereoFrame == STEREO_RIGHT)
|
||||||
|
rgba[1] = GL_FALSE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if(stereoFrame == STEREO_LEFT)
|
if(stereoFrame == STEREO_LEFT)
|
||||||
rgba[1] = rgba[2] = GL_FALSE;
|
rgba[1] = rgba[2] = GL_FALSE;
|
||||||
else if(stereoFrame == STEREO_RIGHT)
|
else if(stereoFrame == STEREO_RIGHT)
|
||||||
|
@ -325,6 +335,7 @@ void R_SetColorMode(GLboolean *rgba, stereoFrame_t stereoFrame, int colormode)
|
||||||
rgba[2] = GL_FALSE;
|
rgba[2] = GL_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue