Drop-in three.js replacement for Rust and WebAssembly (wgpu) — THREE.* API, scene graph, PBR, post-fx, mesh BVH, CSG, headless render, and native media codecs
//! Cameras: position/orientation in world space plus a projection matrix.
modorthographic;modperspective;pubuseorthographic::OrthographicCamera;pubuseperspective::PerspectiveCamera;usecrate::core::Layers;usecrate::math::{Matrix4, Vector3};/// Unified camera trait used by the Renderer.
pubtraitCamera{fnview_matrix(&self)-> Matrix4;fnprojection_matrix(&self)-> Matrix4;fnposition(&self)-> Vector3;fnset_aspect(&mutself, aspect:f32);/// Clip-space near/far planes (for SSAO depth encoding in normal prepass).
fnnear_far(&self)->(f32, f32){(0.1,1000.0)}/// Layer mask. Meshes are visible to this camera iff `camera.layers().test(&mesh.layers)`.
fnlayers(&self)-> Layers{Layers::default()}}