Benjamin Guignabert 5 年之前
父节点
当前提交
76d72ed08d

+ 1 - 1
src/Materials/Textures/multiRenderTarget.ts

@@ -241,7 +241,7 @@ export class MultiRenderTarget extends RenderTargetTexture {
     /**
      * Changes the number of render targets in this MRT
      * Be careful as it will recreate all the data in the new texture.
-     * @param size Defines
+     * @param count new texture count
      */
     public updateCount(count: number) {
         this._multiRenderTargetOptions.textureCount = count;

+ 5 - 2
src/Rendering/prePassRenderer.ts

@@ -10,7 +10,6 @@ import { _DevTools } from '../Misc/devTools';
 import { Color4 } from "../Maths/math.color";
 import { PrePassEffectConfiguration } from "./prePassEffectConfiguration";
 
-export type PrePassLayout = number[];
 /**
  * Renders a pre pass of the scene
  * This means every mesh in the scene will be rendered to a render target texture
@@ -308,7 +307,11 @@ export class PrePassRenderer {
     }
 
     /**
-     * Adds an effect configuration
+     * Adds an effect configuration to the prepass.
+     * If an effect has already been added, it won't add it twice and will return the configuration
+     * already present.
+     * @param cfg the effect configuration
+     * @return the effect configuration now used by the prepass
      */
     public addEffectConfiguration(cfg: PrePassEffectConfiguration) : PrePassEffectConfiguration {
         // Do not add twice

+ 4 - 1
src/Rendering/ssao2Configuration.ts

@@ -32,7 +32,10 @@ export class SSAO2Configuration implements PrePassEffectConfiguration {
 
     }
 
+    /**
+     * Disposes the configuration
+     */
     public dispose() {
-
+        // pass
     }
 }