import {SMAAWeightsMaterial} from 'postprocessing/src/materials/SMAAWeightsMaterial.js'
SMAAWeightsMaterial
Extends:
Subpixel Morphological Antialiasing.
This material computes weights for detected edges.
Constructor Summary
Public Constructor | ||
public |
constructor(texelSize: Vector2) Constructs a new SMAA weights material. |
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
setOrthogonalSearchSteps(steps: Number) Sets the maximum amount of steps performed in the horizontal/vertical pattern searches, at each side of the pixel. |
Public Constructors
public constructor(texelSize: Vector2) source
Constructs a new SMAA weights material.
Params:
Name | Type | Attribute | Description |
texelSize | Vector2 |
|
The absolute screen texel size. |
Public Methods
public setOrthogonalSearchSteps(steps: Number) source
Sets the maximum amount of steps performed in the horizontal/vertical pattern searches, at each side of the pixel.
In number of pixels, it's actually the double. So the maximum line length perfectly handled by, for example 16, is 64 (perfectly means that longer lines won't look as good, but are still antialiased).
Params:
Name | Type | Attribute | Description |
steps | Number | The search steps. Range: [0, 112]. |