Struct three_d::renderer::object::Skybox [−][src]
pub struct Skybox<T: TextureCube> { /* fields omitted */ }
Expand description
An illusion of a sky.
Implementations
pub fn new(
context: &Context,
cpu_texture: &CPUTextureCube<T>
) -> ThreeDResult<Skybox<TextureCubeMap<T>>>
pub fn new(
context: &Context,
cpu_texture: &CPUTextureCube<T>
) -> ThreeDResult<Skybox<TextureCubeMap<T>>>
Creates a new skybox with the given cpu-side version of a TextureCubeMap.
pub fn new_from_equirectangular(
context: &Context,
cpu_texture: &CPUTexture<T>
) -> ThreeDResult<Skybox<TextureCubeMap<T>>>
pub fn new_from_equirectangular(
context: &Context,
cpu_texture: &CPUTexture<T>
) -> ThreeDResult<Skybox<TextureCubeMap<T>>>
Creates a new skybox with a cube texture generated from the equirectangular texture given as input.
Creates a new skybox with the given TextureCubeMap.
Returns a reference to the cube map texture
Render the skybox.
Auto Trait Implementations
impl<T> !RefUnwindSafe for Skybox<T>
impl<T> !UnwindSafe for Skybox<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more