Expand description
Parameters for a Phong reflection model.
Renders triangle meshes with the Phong illumination model.
Fields
color: Color
Solid color applied in the absense of map
.
Default: WHITE
.
glossiness: f32
Determines the sharpness of specular highlights.
Higher values result in sharper highlights to produce a glossy effect.
Default: 30.0
.
Trait Implementations
impl Eq for Phong
Auto Trait Implementations
impl RefUnwindSafe for Phong
impl Send for Phong
impl Sync for Phong
impl Unpin for Phong
impl UnwindSafe for Phong
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.