Capítulo 414 de 859
Post processing node for applying AMD FidelityFX Super Resolution 1 (FSR 1).
Combines two passes:
Note: Only use FSR 1 if your application is fragment-shader bound and cannot afford to render at full resolution. FSR 1 adds its own overhead, so simply shaded scenes will render faster at native resolution without it. Besides, FSR 1 should always be used with an anti-aliased source image.
Reference: https://gpuopen.com/fidelityfx-superresolution/.
updateBeforeType is set to NodeUpdateType.FRAME since the node renders its effect once per frame in updateBefore().import { fsr1 } from 'three/addons/tsl/display/fsr1/FSR1Node.js';
Constructor
| Signature |
|---|
new FSR1Node( textureNode : TextureNode, sharpness : Node.<float>, denoise : Node.<bool> ) |
Properties
| Property | Description |
|---|---|
.denoise : Node.<bool> | Whether to attenuate RCAS sharpening in noisy areas. |
.sharpness : Node.<float> | RCAS sharpening strength. 0 = maximum, 2 = none. |
.textureNode : TextureNode | The texture node that represents the input of the effect. |
.updateBeforeType : string | The updateBeforeType is set to NodeUpdateType.FRAME since the node renders its effect once per frame in updateBefore(). |
Methods
| Method | Description |
|---|---|
.dispose() | Frees internal resources. This method should be called when the effect is no longer required. |
.getTextureNode() : PassTextureNode | Returns the result of the effect as a texture node. |
.setSize( width : number, height : number ) | Sets the output size of the effect. |
.setup( builder : NodeBuilder ) : PassTextureNode | This method is used to setup the effect's TSL code. |
.updateBefore( frame : NodeFrame ) | This method is used to render the effect once per frame. |