Struct IblCubemapParams
#[repr(C)]pub struct IblCubemapParams {
pub sun_dir_and_turbidity: [f32; 4],
pub ground_albedo_and_intensity: [f32; 4],
pub zenith_and_mie_g: [f32; 4],
pub roughness_and_dims: [f32; 4],
}Expand description
Uniform parameters for IblCubemapGenerator (64 bytes).
Fields§
§sun_dir_and_turbidity: [f32; 4]xyz = normalized sun direction, w = atmospheric turbidity (1.0..12.0).
ground_albedo_and_intensity: [f32; 4]xyz = ground bounce albedo RGB, w = solar intensity multiplier.
zenith_and_mie_g: [f32; 4]xyz = zenith Rayleigh scattering RGB, w = Mie anisotropy $g \in [0, 0.96]$.
roughness_and_dims: [f32; 4]x = roughness, y = face dimension, z = sample count, w = mode (0 = env, 1 = irradiance, 2 = GGX specular).
Trait Implementations§
§impl Clone for IblCubemapParams
impl Clone for IblCubemapParams
§fn clone(&self) -> IblCubemapParams
fn clone(&self) -> IblCubemapParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IblCubemapParams
§impl Debug for IblCubemapParams
impl Debug for IblCubemapParams
§impl Default for IblCubemapParams
impl Default for IblCubemapParams
§fn default() -> IblCubemapParams
fn default() -> IblCubemapParams
Returns the “default value” for a type. Read more
§impl PartialEq for IblCubemapParams
impl PartialEq for IblCubemapParams
impl Pod for IblCubemapParams
impl StructuralPartialEq for IblCubemapParams
Auto Trait Implementations§
impl Freeze for IblCubemapParams
impl RefUnwindSafe for IblCubemapParams
impl Send for IblCubemapParams
impl Sync for IblCubemapParams
impl Unpin for IblCubemapParams
impl UnsafeUnpin for IblCubemapParams
impl UnwindSafe for IblCubemapParams
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> NoUninit for Twhere
T: Pod,
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.