Capítulo 469 de 859
Class representing a node that samples a value using a provided callback function.
Constructor
| Signature |
|---|
new SampleNode( callback : function, uvNode : Node.<vec2> ) |
Properties
| Property | Description |
|---|---|
.isSampleNode : boolean (readonly) | This flag can be used for type testing. |
| `.uvNode : Node.<(vec2 | vec3)>` |
.type : string (readonly) | Returns the type of the node. |
Methods
| Method | Description |
|---|---|
.sample( uv : Node.<vec2> ) : Node | Calls the callback function with the provided UV node. |
.setup() : Node | Sets up the node by sampling with the default UV accessor. |