[][src]Struct pbrt::materials::metal::MetalMaterial

pub struct MetalMaterial {
    pub eta: Arc<dyn Texture<Spectrum> + Sync + Send>,
    pub k: Arc<dyn Texture<Spectrum> + Sync + Send>,
    pub roughness: Arc<dyn Texture<Float> + Sync + Send>,
    pub u_roughness: Option<Arc<dyn Texture<Float> + Sync + Send>>,
    pub v_roughness: Option<Arc<dyn Texture<Float> + Sync + Send>>,
    pub bump_map: Option<Arc<dyn Texture<Float> + Send + Sync>>,
    pub remap_roughness: bool,
}

Fields

eta: Arc<dyn Texture<Spectrum> + Sync + Send>k: Arc<dyn Texture<Spectrum> + Sync + Send>roughness: Arc<dyn Texture<Float> + Sync + Send>u_roughness: Option<Arc<dyn Texture<Float> + Sync + Send>>v_roughness: Option<Arc<dyn Texture<Float> + Sync + Send>>bump_map: Option<Arc<dyn Texture<Float> + Send + Sync>>remap_roughness: bool

Implementations

impl MetalMaterial[src]

pub fn new(
    eta: Arc<dyn Texture<Spectrum> + Send + Sync>,
    k: Arc<dyn Texture<Spectrum> + Send + Sync>,
    roughness: Arc<dyn Texture<Float> + Sync + Send>,
    u_roughness: Option<Arc<dyn Texture<Float> + Sync + Send>>,
    v_roughness: Option<Arc<dyn Texture<Float> + Sync + Send>>,
    bump_map: Option<Arc<dyn Texture<Float> + Sync + Send>>,
    remap_roughness: bool
) -> Self
[src]

pub fn create(mp: &mut TextureParams) -> Arc<Material>[src]

pub fn compute_scattering_functions(
    &self,
    si: &mut SurfaceInteraction<'_>,
    _mode: TransportMode,
    _allow_multiple_lobes: bool,
    _material: Option<Arc<Material>>,
    scale_opt: Option<Spectrum>
)
[src]

Auto Trait Implementations

impl !RefUnwindSafe for MetalMaterial

impl Send for MetalMaterial

impl Sync for MetalMaterial

impl Unpin for MetalMaterial

impl !UnwindSafe for MetalMaterial

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.