Struct three_d::renderer::material::PositionMaterial [−][src]
pub struct PositionMaterial {
pub render_states: RenderStates,
}
Fields
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 PositionMaterial
impl Send for PositionMaterial
impl Sync for PositionMaterial
impl Unpin for PositionMaterial
impl UnwindSafe for PositionMaterial
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