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",
|
||||
"mSounds": "sounds",
|
||||
"mShowMoves": "showMoves",
|
||||
"mAutoComplete": "autoComplete"
|
||||
"mAutoComplete": "autoComplete",
|
||||
"mAnaglyph": "anaglyph"
|
||||
}
|
||||
for(var o in optDefs)
|
||||
if(typeof options[optDefs[o]]!="undefined")
|
||||
|
|
|
@ -3195,7 +3195,7 @@ if(window.JoclyXdViewCleanup)
|
|||
if(stereo) {
|
||||
gamepads.update();
|
||||
stereoEffect.render( scene, camera );
|
||||
} else if(ctx.anaglyph)
|
||||
} else if(ctx.anaglyph || aGame.mAnaglyph)
|
||||
anaglyphEffect.render(scene,camera);
|
||||
else
|
||||
renderer.render( scene, camera );
|
||||
|
|
|
@ -787,7 +787,8 @@
|
|||
"mNotation": "notation",
|
||||
"mSounds": "sounds",
|
||||
"mShowMoves": "showMoves",
|
||||
"mAutoComplete": "autoComplete"
|
||||
"mAutoComplete": "autoComplete",
|
||||
"mAnaglyph": "anaglyph"
|
||||
}
|
||||
for (var o in optDefs)
|
||||
if (typeof options[optDefs[o]] != "undefined")
|
||||
|
@ -810,7 +811,8 @@
|
|||
var promise = new Promise(function (resolve, reject) {
|
||||
var options = {
|
||||
skin: self.game.mSkin,
|
||||
sounds: self.game.mSounds
|
||||
sounds: self.game.mSounds,
|
||||
anaglyph: self.game.mAnaglyph
|
||||
}
|
||||
if (self.game.mViewOptions.useNotation)
|
||||
options.notation = !!self.game.mNotation;
|
||||
|
|
Loading…
Reference in a new issue