GFX.Viewport¶
Name | Mandatory | Description | Default | Type |
---|---|---|---|---|
⬅️ Input |
The input of this shard is ignored. | None |
||
Output ➡️ |
Outputs the dimensions of the current viewport as an int4. | Int4 |
This shard outputs the dimensions of the current viewport as an int4
Details¶
The elements of the int4 output of this shard represent the physical pixel coordinates of the viewport in the following format: - The first element represents the x coordinate of the top left edge of the viewport. - The second element represents the y coordinate of the top left edge of the viewport. - The third element represents the x coordinate of the bottom right edge of the viewport. - The fourth element represents the y coordinate of the bottom right edge of the viewport. - The origin is at the top left of the window (at 0,0) and extends to the right(+X) and downwards(+Y).