OrthographicCamera.near¶
Summary¶
OrthographicCamera.near gets or sets the near clipping plane distance. Even in orthographic projection, near/far ranges affect depth clipping and precision. Keep near as large as practical for stable depth behavior.
Syntax¶
Parameters¶
This property does not take call parameters; assign a numeric near distance to set it.
Returns¶
number - Current near clipping distance.
Type Details¶
Example¶
const canvas = document.querySelector("canvas");
const wgpu = await WasmGPU.create(canvas);
const camera = wgpu.createCamera.orthographic();
camera.near = 0.01;
console.log(camera.near);