pub struct Phong {
pub color: Color,
pub glossiness: f32,
}Expand description
Parameters for a Phong reflection model.
Renders triangle meshes with the Phong illumination model.
Fields§
§color: ColorSolid color applied in the absense of map.
Default: WHITE.
glossiness: f32Determines 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 Freeze for Phong
impl RefUnwindSafe for Phong
impl Send for Phong
impl Sync for Phong
impl Unpin for Phong
impl UnwindSafe for Phong
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more