Browse Source

Added stencil support to frame

David Catuhe 8 years ago
parent
commit
711c6553fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Playground/frame.js

+ 1 - 1
Playground/frame.js

@@ -44,7 +44,7 @@
             }
 
             var canvas = document.getElementById("renderCanvas");
-            engine = new BABYLON.Engine(canvas, true);
+            engine = new BABYLON.Engine(canvas, true, {stencil: true});
             engine.renderEvenInBackground = false;
             BABYLON.Camera.ForceAttachControlToAlwaysPreventDefault = true;