The native runtime for three.js: three.js, down to the metal. 45× smaller than Electron, on a Sony PS3, and path-traced at 60 fps on ray-tracing GPUs.
Rust electron-alternativegame-engineglobal-illuminationgraphicsjavascript-runtimemetalpath-tracingray-tracingreal-time-renderingrenderingrustthreejstypescriptvoxelvulkanwebgpuwgpu
use crate::bounding_volume::Aabb;
use crate::math::Pose;
use crate::shape::HeightField;
impl HeightField {
/// Computes the world-space [`Aabb`] of this heightfield, transformed by `pos`.
#[inline]
pub fn aabb(&self, pos: &Pose) -> Aabb {
self.root_aabb().transform_by(pos)
}
/// Computes the local-space [`Aabb`] of this heightfield.
#[inline]
pub fn local_aabb(&self) -> Aabb {
*self.root_aabb()
}
}