Gets a ray going from ($plink screenX;, $plink screenY;).
void screenToWorld(float screenX, float screenY, out vec3 worldNear, out vec3 worldFar)
Type: float
The x screen coordinate.
Type: float
The y screen coordinate.
Modifiers: out
Type: vec3
Position 2 units away from the camera.
Modifiers: out
Type: vec3
Position 400 units away from the camera.
- Due to a technical issue, still to be fixed, the output lags by one frame. I.e. if you Set Camera on frame N, then this block's output will change on frame N+1 - the function will not work on the first frame.