diff --git a/src/browser/jocly.embed.js b/src/browser/jocly.embed.js index b19383c..9a78c8f 100644 --- a/src/browser/jocly.embed.js +++ b/src/browser/jocly.embed.js @@ -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") diff --git a/src/browser/jocly.xd-view.js b/src/browser/jocly.xd-view.js index 16c8f0d..64829ba 100644 --- a/src/browser/jocly.xd-view.js +++ b/src/browser/jocly.xd-view.js @@ -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 ); diff --git a/src/core/jocly.core.js b/src/core/jocly.core.js index 19c4c71..fdcaca9 100644 --- a/src/core/jocly.core.js +++ b/src/core/jocly.core.js @@ -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;