[][src]Struct pbrt::materials::glass::GlassMaterial

pub struct GlassMaterial {
    pub kr: Arc<dyn Texture<Spectrum> + Sync + Send>,
    pub kt: Arc<dyn Texture<Spectrum> + Sync + Send>,
    pub u_roughness: Arc<dyn Texture<Float> + Sync + Send>,
    pub v_roughness: Arc<dyn Texture<Float> + Sync + Send>,
    pub index: Arc<dyn Texture<Float> + Sync + Send>,
    pub bump_map: Option<Arc<dyn Texture<Float> + Send + Sync>>,
    pub remap_roughness: bool,
}

Perfect or glossy specular reflection and transmission, weighted by Fresnel terms for accurate angular-dependent variation.

Fields

kr: Arc<dyn Texture<Spectrum> + Sync + Send>kt: Arc<dyn Texture<Spectrum> + Sync + Send>u_roughness: Arc<dyn Texture<Float> + Sync + Send>v_roughness: Arc<dyn Texture<Float> + Sync + Send>index: Arc<dyn Texture<Float> + Sync + Send>bump_map: Option<Arc<dyn Texture<Float> + Send + Sync>>remap_roughness: bool

Implementations

impl GlassMaterial[src]

pub fn new(
    kr: Arc<dyn Texture<Spectrum> + Sync + Send>,
    kt: Arc<dyn Texture<Spectrum> + Sync + Send>,
    u_roughness: Arc<dyn Texture<Float> + Sync + Send>,
    v_roughness: Arc<dyn Texture<Float> + Sync + Send>,
    index: Arc<dyn Texture<Float> + Send + Sync>,
    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 GlassMaterial

impl Send for GlassMaterial

impl Sync for GlassMaterial

impl Unpin for GlassMaterial

impl !UnwindSafe for GlassMaterial

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.