pub struct Viewport3D {
pub shader_wgsl: String,
pub uniforms: Sdf3DUniform,
pub bounds: [f32; 4],
pub lights: Vec<Light>,
}Expand description
A 3D viewport to be rendered via raymarching
Fields§
§shader_wgsl: StringThe generated WGSL shader code for this scene
uniforms: Sdf3DUniformUniform data for the shader
bounds: [f32; 4]Viewport bounds in screen coordinates
lights: Vec<Light>Lights in the scene
Trait Implementations§
Source§impl Clone for Viewport3D
impl Clone for Viewport3D
Auto Trait Implementations§
impl Freeze for Viewport3D
impl RefUnwindSafe for Viewport3D
impl Send for Viewport3D
impl Sync for Viewport3D
impl Unpin for Viewport3D
impl UnsafeUnpin for Viewport3D
impl UnwindSafe for Viewport3D
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