pub struct Scene4 {
pub root: SceneNode4,
}Fields§
§root: SceneNode4Implementations§
Source§impl Scene4
impl Scene4
pub fn new(root: SceneNode4) -> Self
Sourcepub fn to_wgsl_4d(&self) -> String
pub fn to_wgsl_4d(&self) -> String
Emits fn loam_scene_sdf_4d(p: vec4<f32>) -> f32.
Sourcepub fn to_hyperslice_wgsl(&self, w_slice_expr: &str) -> String
pub fn to_hyperslice_wgsl(&self, w_slice_expr: &str) -> String
Emits scene distance, primitive kind and march bounds at the supplied WGSL slice expression.
Sourcepub fn to_hyperslice_wgsl_gated(
&self,
w_slice_expr: &str,
halfspace_gate_expr: &str,
) -> String
pub fn to_hyperslice_wgsl_gated( &self, w_slice_expr: &str, halfspace_gate_expr: &str, ) -> String
Halfspaces return SENTINEL_DISTANCE when the supplied WGSL f32 expression is below 0.5.
Sourcepub fn eval_at(
&self,
p3: Vec3,
w_slice: f32,
halfspace_gate: bool,
) -> (f32, u32)
pub fn eval_at( &self, p3: Vec3, w_slice: f32, halfspace_gate: bool, ) -> (f32, u32)
Evaluates a slice; disabling halfspace_gate replaces halfspaces with SENTINEL_DISTANCE.
pub fn eval(&self, p3: Vec3, w_slice: f32, halfspace_gate: bool) -> f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scene4
impl RefUnwindSafe for Scene4
impl Send for Scene4
impl Sync for Scene4
impl Unpin for Scene4
impl UnsafeUnpin for Scene4
impl UnwindSafe for Scene4
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more