mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 12:12:10 -04:00
red-cyan is better than red-blue
This commit is contained in:
parent
72f6174d7d
commit
74166de769
@ -190,11 +190,12 @@ ConfigVariableBool red_blue_stereo
|
||||
"rendering."));
|
||||
|
||||
ConfigVariableString red_blue_stereo_colors
|
||||
("red-blue-stereo-colors", "red blue",
|
||||
("red-blue-stereo-colors", "red cyan",
|
||||
PRC_DESC("This defines the color channels that are used for the left and "
|
||||
"right eye, respectively, for red-blue-stereo mode. This should "
|
||||
"be a two-word string, where each word is one of 'red', 'blue', "
|
||||
"'green', or 'alpha'."));
|
||||
"'green', 'cyan', 'magenta', 'yellow', or 'alpha', or a union "
|
||||
"of two or more words separated by a vertical pipe (|)."));
|
||||
|
||||
ConfigVariableBool color_scale_via_lighting
|
||||
("color-scale-via-lighting", true,
|
||||
|
@ -867,6 +867,15 @@ parse_color_mask(const string &word) {
|
||||
} else if (w == "blue" || w == "b") {
|
||||
result |= 0x004;
|
||||
|
||||
} else if (w == "yellow" || w == "y") {
|
||||
result |= 0x003;
|
||||
|
||||
} else if (w == "magenta" || w == "m") {
|
||||
result |= 0x005;
|
||||
|
||||
} else if (w == "cyan" || w == "c") {
|
||||
result |= 0x006;
|
||||
|
||||
} else if (w == "alpha" || w == "a") {
|
||||
result |= 0x008;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user