Capítulo 251 de 859
This pass can be used to create a film grain effect.
intensity or grayscale values at runtime.const filmPass = new FilmPass();
composer.addPass( filmPass );
Constructor
| Signature |
|---|
new FilmPass( intensity : number, grayscale : boolean ) |
Properties
| Property | Description |
|---|---|
.material : ShaderMaterial | The pass material. |
.uniforms : Object | The pass uniforms. Use this object if you want to update the intensity or grayscale values at runtime. |
Methods
| Method | Description |
|---|---|
.dispose() | Frees the GPU-related resources allocated by this instance. Call this method whenever the pass is no longer used in your app. |
.render( renderer : WebGLRenderer, writeBuffer : WebGLRenderTarget, readBuffer : WebGLRenderTarget, deltaTime : number, maskActive : boolean ) | Performs the film pass. |