Struct three_d::renderer::material::DepthMaterial [−][src]
pub struct DepthMaterial {
pub min_distance: Option<f32>,
pub max_distance: Option<f32>,
pub render_states: RenderStates,
}
Fields
min_distance: Option<f32>
max_distance: Option<f32>
render_states: RenderStates
Trait Implementations
Returns the “default value” for a type. Read more
Returns the fragment shader source for this material. Should output the final fragment color.
fn use_uniforms(
&self,
program: &Program,
camera: &Camera,
_lights: &Lights
) -> ThreeDResult<()>
fn use_uniforms(
&self,
program: &Program,
camera: &Camera,
_lights: &Lights
) -> ThreeDResult<()>
Sends the uniform data needed for this material to the fragment shader.
Returns the render states needed to render with this material.
Returns whether or not this material is transparent.
Auto Trait Implementations
impl RefUnwindSafe for DepthMaterial
impl Send for DepthMaterial
impl Sync for DepthMaterial
impl Unpin for DepthMaterial
impl UnwindSafe for DepthMaterial
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more