[go: up one dir, main page]

Specular

Struct Specular 

Source
pub struct Specular<'a> { /* private fields */ }
Available on crate feature KHR_materials_specular only.
Expand description

Parameter values that define the strength and colour of the specular reflection of the material

Implementations§

Source§

impl<'a> Specular<'a>

Source

pub fn specular_factor(&self) -> f32

The strength of the specular reflection.

Source

pub fn specular_texture(&self) -> Option<Info<'a>>

A texture that defines the strength of the specular reflection, stored in the alpha (A) channel. This will be multiplied by specular_factor.

Source

pub fn specular_color_factor(&self) -> [f32; 3]

The F0 color of the specular reflection (linear RGB).

Source

pub fn specular_color_texture(&self) -> Option<Info<'a>>

A texture that defines the F0 color of the specular reflection, stored in the RGB channels and encoded in sRGB. This texture will be multiplied by specular_color_factor.

Source

pub fn extras(&self) -> &'a Extras

Optional application specific data.

Auto Trait Implementations§

§

impl<'a> Freeze for Specular<'a>

§

impl<'a> RefUnwindSafe for Specular<'a>

§

impl<'a> Send for Specular<'a>

§

impl<'a> Sync for Specular<'a>

§

impl<'a> Unpin for Specular<'a>

§

impl<'a> UnwindSafe for Specular<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.