[−][src]Struct libraymarcher::RayMarcher
Fields
object: O
Object or scene to render
config: RayMarcherConfig<C>
Configuration to run under. see RayMarcherConfig
Implementations
impl<C: Color, O: SceneObject<C>> RayMarcher<C, O>
[src]
pub fn get_pixel_color(&self, x: usize, y: usize, t: f64) -> C
[src]
Marches a ray (and secondary rays) to get a final color. Will send multiple rays if anti-aliasing is enabled, and average them.
x
and y
are the pixel locations. They must be with the width and height of the configuration.
t
is the varied parameter, used for animation.
Returns the traced color of the pixel.
Auto Trait Implementations
impl<C, O> RefUnwindSafe for RayMarcher<C, O> where
C: RefUnwindSafe,
O: RefUnwindSafe,
C: RefUnwindSafe,
O: RefUnwindSafe,
impl<C, O> Send for RayMarcher<C, O> where
C: Send,
O: Send,
C: Send,
O: Send,
impl<C, O> Sync for RayMarcher<C, O> where
C: Sync,
O: Sync,
C: Sync,
O: Sync,
impl<C, O> Unpin for RayMarcher<C, O> where
C: Unpin,
O: Unpin,
C: Unpin,
O: Unpin,
impl<C, O> UnwindSafe for RayMarcher<C, O> where
C: UnwindSafe,
O: UnwindSafe,
C: UnwindSafe,
O: 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>,