#[repr(C)]
pub struct Environment { pub sun_dir: [f32; 3], pub sun_rgb: [f32; 3], pub ground_rgb: [f32; 3], pub sky_rgb: [f32; 3], pub horizon_rgb: [f32; 3], pub fog_density: f32, pub fog_height: f32, pub fog_height_falloff: f32, pub fog_start: f32, pub fog_rgba: [f32; 4], }
Expand description

Global scene rendering parameters. See ark-api for more documentation.

Fields

sun_dir: [f32; 3]sun_rgb: [f32; 3]ground_rgb: [f32; 3]sky_rgb: [f32; 3]horizon_rgb: [f32; 3]fog_density: f32fog_height: f32fog_height_falloff: f32fog_start: f32fog_rgba: [f32; 4]

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern. Read more

If this function returns true, then it must be valid to reinterpret bits as &Self.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.