Skip to main content

Material

Trait Material 

Source
pub trait Material {
    // Provided method
    fn is_light(&self) -> bool { ... }
}
Expand description

The trait for types that describe how a ray behaves when hitting an object.

Provided Methods§

Source

fn is_light(&self) -> bool

Is the material emitting light

Implementors§