pub struct SkyState { /* private fields */ }Expand description
The state of the sky model. Ideally, you should keep the state around as
long as any of the SkyParams parameters don’t change. If any parameters
change, you must re-create the SkyState object.
Note: if you are planning to run the model in a shader, you only need to
translate SkyState::radiance into shader code. The rest can be executed
on the CPU. You grab the raw parameters using SkyState::raw and upload
the 30 f32s to the GPU in a uniform buffer, for example.
Implementations§
Trait Implementations§
impl Copy for SkyState
impl StructuralPartialEq for SkyState
Auto Trait Implementations§
impl Freeze for SkyState
impl RefUnwindSafe for SkyState
impl Send for SkyState
impl Sync for SkyState
impl Unpin for SkyState
impl UnwindSafe for SkyState
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