OrthographicCamera.right¶
Summary¶
OrthographicCamera.right gets or sets the right frustum plane. It should usually be paired with left to maintain symmetric or intentionally asymmetric extents. Changing this value invalidates cached projection data.
Syntax¶
Parameters¶
This property does not take call parameters; assign a numeric value to set it.
Returns¶
number - Current right frustum boundary.
Type Details¶
Example¶
const canvas = document.querySelector("canvas");
const wgpu = await WasmGPU.create(canvas);
const camera = wgpu.createCamera.orthographic();
camera.left = -80;
camera.right = 80;
console.log(camera.right);