Struct nobject_rs::ColorCorrectedMap
source · pub struct ColorCorrectedMap {
pub file_name: String,
pub blend_u: Option<bool>,
pub blend_v: Option<bool>,
pub color_correct: Option<bool>,
pub clamp: Option<bool>,
pub texture_range: Option<(f32, f32)>,
pub offset: Option<(f32, Option<f32>, Option<f32>)>,
pub scale: Option<(f32, Option<f32>, Option<f32>)>,
pub turbulance: Option<(f32, Option<f32>, Option<f32>)>,
pub texture_res: Option<i32>,
}
Expand description
Common settings for texture maps which can be color corrected.
Fields§
§file_name: String
The name of the texture map file.
blend_u: Option<bool>
Enable horizontal texture blending
blend_v: Option<bool>
Enable vertical texture blending
color_correct: Option<bool>
Enable color correction
clamp: Option<bool>
Enables clamping.
texture_range: Option<(f32, f32)>
Specifies the range over which scalar or color texture
values may vary. Corresponds to the -mm
option.
offset: Option<(f32, Option<f32>, Option<f32>)>
Offset the position in the texture map.
scale: Option<(f32, Option<f32>, Option<f32>)>
Scale the size of the texture pattern.
turbulance: Option<(f32, Option<f32>, Option<f32>)>
A turbulance value to apply to the texture.
texture_res: Option<i32>
Allows the specification of a specific resolution to use when an image is used as a texture.
Trait Implementations§
source§impl Clone for ColorCorrectedMap
impl Clone for ColorCorrectedMap
source§fn clone(&self) -> ColorCorrectedMap
fn clone(&self) -> ColorCorrectedMap
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 ColorCorrectedMap
impl Debug for ColorCorrectedMap
source§impl Default for ColorCorrectedMap
impl Default for ColorCorrectedMap
source§fn default() -> ColorCorrectedMap
fn default() -> ColorCorrectedMap
Returns the “default value” for a type. Read more
source§impl PartialEq for ColorCorrectedMap
impl PartialEq for ColorCorrectedMap
source§fn eq(&self, other: &ColorCorrectedMap) -> bool
fn eq(&self, other: &ColorCorrectedMap) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ColorCorrectedMap
Auto Trait Implementations§
impl Freeze for ColorCorrectedMap
impl RefUnwindSafe for ColorCorrectedMap
impl Send for ColorCorrectedMap
impl Sync for ColorCorrectedMap
impl Unpin for ColorCorrectedMap
impl UnwindSafe for ColorCorrectedMap
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