Import
SSAAPassNode is an addon, and must be imported explicitly, see Installation#Addons.
import { ssaaPass } from 'three/addons/tsl/display/SSAAPassNode.js';
Constructor
new SSAAPassNode( scene : Scene, camera : Camera )
Constructs a new SSAA pass node.
| scene |
The scene to render. |
| camera |
The camera to render the scene with. |
Properties
.clearAlpha : number
The clear alpha of the pass.
Default is 0.
.clearColor : Color
The clear color of the pass.
Default is 0x000000.
.isSSAAPassNode : boolean (readonly)
This flag can be used for type testing.
Default is true.
.sampleLevel : number
The sample level specified as n, where the number of samples is 2^n, so sampleLevel = 4, is 2^4 samples, 16.
Default is 4.
.sampleWeight : UniformNode.<float>
A uniform node representing the sample weight.
Default is 1.
.unbiased : boolean
Whether rounding errors should be mitigated or not.
Default is true.
Methods
.dispose()
Frees internal resources. This method should be called when the pass is no longer required.
- Overrides: PassNode#dispose
.setup( builder : NodeBuilder ) : PassTextureNode
This method is used to setup the effect's MRT configuration and quad mesh.
| builder |
The current node builder. |
- Overrides: PassNode#setup
.updateBefore( frame : NodeFrame )
This method is used to render the SSAA effect once per frame.
| frame |
The current node frame. |
- Overrides: PassNode#updateBefore