[−][src]Struct libraymarcher::RayMarcherConfig
Fields
width: usize
Width of the rendered image in px
height: usize
Height of the rendered image in px
camera_pos: Vec3
Camera position in 3d space
look_at: Vec3
Point that the camera should point towards (usually leave this at (0, 0, 0) for julia sets)
light_pos: Vec3
Position of the Phong directional light in 3d space
background_color: C
Color to render if a ray missed the scene
camera_zoom: f64
Zoom level of the camera. 1.0 normal zoom
anti_aliasing_level: u32
Size of subpixel grid. anti_aliasing_level of 4 will create a 4x4 subpixel grid (so 16x AA)
backplane_positions: Vec3
Position of the back culling planes. Any rays that hit this will be assumed to be a miss
specular_shininess: f64
Phong shininess constant
specular_color: C
Color of specular highlights
Trait Implementations
impl<C: Debug> Debug for RayMarcherConfig<C>
[src]
impl<C: Color> Default for RayMarcherConfig<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for RayMarcherConfig<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for RayMarcherConfig<C> where
C: Send,
C: Send,
impl<C> Sync for RayMarcherConfig<C> where
C: Sync,
C: Sync,
impl<C> Unpin for RayMarcherConfig<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for RayMarcherConfig<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,