Capítulo 470 de 859
This node provides a collection of screen related metrics. Depending on ScreenNode#scope, the nodes can represent resolution or viewport data as well as fragment or uv coordinates.
Constructor
| Signature |
|---|
| `new ScreenNode( scope : 'coordinate' |
Properties
| Property | Description |
|---|---|
.isViewportNode : boolean (readonly) | This flag can be used for type testing. |
| `.scope : 'coordinate' | 'viewport' |
Methods
| Method | Description |
|---|---|
| `.generateNodeType() : 'float' | 'vec2' |
.getUpdateType() : NodeUpdateType | This method is overwritten since the node's update type depends on the selected scope. |
.update( frame : NodeFrame ) | ScreenNode implements Node#update to retrieve viewport and size information from the current renderer. |