Capítulo 451 de 859
A inner node definition that implements the actual pixelation TSL code.
updateType is set to NodeUpdateType.FRAME since the node updates its internal uniforms once per frame in updateBefore().Constructor
| Signature |
|---|
new PixelationNode( textureNode : TextureNode, depthNode : TextureNode, normalNode : TextureNode, pixelSize : Node.<float>, normalEdgeStrength : Node.<float>, depthEdgeStrength : Node.<float> ) |
Properties
| Property | Description |
|---|---|
.depthEdgeStrength : Node.<float> | The depth edge strength. |
.depthNode : TextureNode | The texture that represents the beauty's depth. |
.normalEdgeStrength : Node.<float> | The pixel size. |
.normalNode : TextureNode | The texture that represents the beauty's normals. |
.pixelSize : Node.<float> | The pixel size. |
.textureNode : TextureNode | The texture node that represents the beauty pass. |
.updateType : string | The updateType is set to NodeUpdateType.FRAME since the node updates its internal uniforms once per frame in updateBefore(). |
Methods
| Method | Description |
|---|---|
.setup( builder : NodeBuilder ) : ShaderCallNodeInternal | This method is used to setup the effect's TSL code. |
.update( frame : NodeFrame ) | This method is used to update uniforms once per frame. |