class Prism::Skybox
- Prism::Skybox
- Crash::Component
- Reference
- Object
Defined in:
prism/stdlib/skybox.crConstructors
-
.new(periods : Array(Skybox::Period), time : Prism::Clock, transition_durration : Prism::Clock, size : Float32)
Creates a skybox with different periods of the day/night.
- .new(periods : Array(Skybox::Period))
Instance Method Summary
- #day_texture
-
#get_values : NamedTuple(current_texture: Prism::TextureCubeMap, next_texture: Prism::TextureCubeMap, blend_factor: Float32)
Retrieves the current skybox values
- #night_texture
- #size : Float32
Constructor Detail
def self.new(periods : Array(Skybox::Period), time : Prism::Clock, transition_durration : Prism::Clock, size : Float32)
#
Creates a skybox with different periods of the day/night. The size of the skybox determins how large the sky will be. The time is the time of day we will start at. The transition_durration controls how long it takes to transition between periods.
Instance Method Detail
def get_values : NamedTuple(current_texture: Prism::TextureCubeMap, next_texture: Prism::TextureCubeMap, blend_factor: Float32)
#
Retrieves the current skybox values