Capítulo 478 de 859
A special render pass node that renders the scene with SSAA (Supersampling Anti-Aliasing). This manual SSAA approach re-renders the scene ones for each sample with camera jitter and accumulates the results.
This node produces a high-quality anti-aliased output but is also extremely expensive because of its brute-force approach of re-rendering the entire scene multiple times.
Reference: https://en.wikipedia.org/wiki/Supersampling
import { ssaaPass } from 'three/addons/tsl/display/SSAAPassNode.js';
Constructor
| Signature |
|---|
new SSAAPassNode( scene : Scene, camera : Camera ) |
Properties
| Property | Description |
|---|---|
.isSSAAPassNode : boolean (readonly) | This flag can be used for type testing. |
.sampleLevel : number | The sample level specified as n, where the number of samples is 2^n, so sampleLevel = 4, is 2^4 samples, 16. |
.sampleWeight : UniformNode.<float> | A uniform node representing the sample weight. |
.unbiased : boolean | Whether rounding errors should be mitigated or not. |
Methods
| Method | Description |
|---|---|
.dispose() | Frees internal resources. This method should be called when the pass is no longer required. |
.setup( builder : NodeBuilder ) : PassTextureNode | This method is used to setup the effect's MRT configuration and quad mesh. |
.updateBefore( frame : NodeFrame ) | This method is used to render the SSAA effect once per frame. |