added anaglyph to view options
This commit is contained in:
parent
9a3a939c34
commit
669f511fc8
3 changed files with 7 additions and 4 deletions
|
@ -79,7 +79,8 @@ function ReceiveMessage(event)
|
||||||
"mNotation": "notation",
|
"mNotation": "notation",
|
||||||
"mSounds": "sounds",
|
"mSounds": "sounds",
|
||||||
"mShowMoves": "showMoves",
|
"mShowMoves": "showMoves",
|
||||||
"mAutoComplete": "autoComplete"
|
"mAutoComplete": "autoComplete",
|
||||||
|
"mAnaglyph": "anaglyph"
|
||||||
}
|
}
|
||||||
for(var o in optDefs)
|
for(var o in optDefs)
|
||||||
if(typeof options[optDefs[o]]!="undefined")
|
if(typeof options[optDefs[o]]!="undefined")
|
||||||
|
|
|
@ -3195,7 +3195,7 @@ if(window.JoclyXdViewCleanup)
|
||||||
if(stereo) {
|
if(stereo) {
|
||||||
gamepads.update();
|
gamepads.update();
|
||||||
stereoEffect.render( scene, camera );
|
stereoEffect.render( scene, camera );
|
||||||
} else if(ctx.anaglyph)
|
} else if(ctx.anaglyph || aGame.mAnaglyph)
|
||||||
anaglyphEffect.render(scene,camera);
|
anaglyphEffect.render(scene,camera);
|
||||||
else
|
else
|
||||||
renderer.render( scene, camera );
|
renderer.render( scene, camera );
|
||||||
|
|
|
@ -787,7 +787,8 @@
|
||||||
"mNotation": "notation",
|
"mNotation": "notation",
|
||||||
"mSounds": "sounds",
|
"mSounds": "sounds",
|
||||||
"mShowMoves": "showMoves",
|
"mShowMoves": "showMoves",
|
||||||
"mAutoComplete": "autoComplete"
|
"mAutoComplete": "autoComplete",
|
||||||
|
"mAnaglyph": "anaglyph"
|
||||||
}
|
}
|
||||||
for (var o in optDefs)
|
for (var o in optDefs)
|
||||||
if (typeof options[optDefs[o]] != "undefined")
|
if (typeof options[optDefs[o]] != "undefined")
|
||||||
|
@ -810,7 +811,8 @@
|
||||||
var promise = new Promise(function (resolve, reject) {
|
var promise = new Promise(function (resolve, reject) {
|
||||||
var options = {
|
var options = {
|
||||||
skin: self.game.mSkin,
|
skin: self.game.mSkin,
|
||||||
sounds: self.game.mSounds
|
sounds: self.game.mSounds,
|
||||||
|
anaglyph: self.game.mAnaglyph
|
||||||
}
|
}
|
||||||
if (self.game.mViewOptions.useNotation)
|
if (self.game.mViewOptions.useNotation)
|
||||||
options.notation = !!self.game.mNotation;
|
options.notation = !!self.game.mNotation;
|
||||||
|
|
Loading…
Reference in a new issue