Explorar el Código

Merge pull request #2376 from benaadams/reflectionProbe

Add depth stencil group control to reflection probe
David Catuhe hace 8 años
padre
commit
3a81ff11b7
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      src/Probes/babylon.reflectionProbe.ts

+ 10 - 0
src/Probes/babylon.reflectionProbe.ts

@@ -91,6 +91,16 @@
             this._attachedMesh = mesh;
         }
         
+        /**
+         * Specifies whether or not the stencil and depth buffer are cleared between two rendering groups.
+         * 
+         * @param renderingGroupId The rendering group id corresponding to its index
+         * @param autoClearDepthStencil Automatically clears depth and stencil between groups if true.
+         */
+        public setRenderingAutoClearDepthStencil(renderingGroupId: number, autoClearDepthStencil: boolean): void {
+            this._renderTargetTexture.setRenderingAutoClearDepthStencil(renderingGroupId, autoClearDepthStencil);
+        }
+
         public dispose() {
             var index = this._scene.reflectionProbes.indexOf(this);