ScreenNode

Last modified: Mar 5, 2026

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

new ScreenNode(scope)
ParameterTypeDefault Value
scope"size" | "coordinate" | "viewport" | "uv" | "dpr"

Constructs a new screen node.

AccessorType

Properties

PropertyTypeDefault Value
scope"size" | "coordinate" | "viewport" | "uv" | "dpr"
_outputnull | Node
isViewportNodeboolean
MethodType

Extends

Node

screenDPR

TSL object that represents the current DPR.

Type

ScreenNode<float>

screenUV

TSL object that represents normalized screen coordinates, unitless in [0, 1].

Type

ScreenNode<vec2>

screenSize

TSL object that represents the screen resolution in physical pixel units.

Type

ScreenNode<vec2>

screenCoordinate

TSL object that represents the current x/y pixel position on the screen in physical pixel units.

Type

ScreenNode<vec2>

viewport

TSL object that represents the viewport rectangle as x, y, width and height in physical pixel units.

Type

ScreenNode<vec4>

viewportSize

TSL object that represents the viewport resolution in physical pixel units.

Type

ScreenNode<vec2>

viewportCoordinate

TSL object that represents the current x/y pixel position on the viewport in physical pixel units.

Type

ScreenNode<vec2>

viewportUV

TSL object that represents normalized viewport coordinates, unitless in [0, 1].

Type

ScreenNode<vec2>

viewportResolution

Type

any