Struct rustracer::material::ImagePigment
source · pub struct ImagePigment {
hdr_img: HdrImage,
}
Expand description
A textured pigment.
The texture is given through a HdrImage
, maybe read from pfm file.
Fields§
§hdr_img: HdrImage
An HdrImage
reference.
Implementations§
source§impl ImagePigment
impl ImagePigment
sourcepub fn new(hdr_img: HdrImage) -> Self
pub fn new(hdr_img: HdrImage) -> Self
Create a new ImagePigment
from HdrImage
.
Trait Implementations§
source§impl Clone for ImagePigment
impl Clone for ImagePigment
source§fn clone(&self) -> ImagePigment
fn clone(&self) -> ImagePigment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImagePigment
impl Debug for ImagePigment
Auto Trait Implementations§
impl RefUnwindSafe for ImagePigment
impl Send for ImagePigment
impl Sync for ImagePigment
impl Unpin for ImagePigment
impl UnwindSafe for ImagePigment
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