class Prism::Skybox

Defined in:

prism/stdlib/skybox.cr

Constructors

Instance Method Summary

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.


[View source]
def self.new(periods : Array(Skybox::Period)) #

[View source]

Instance Method Detail

def day_texture #

[View source]
def get_values : NamedTuple(current_texture: Prism::TextureCubeMap, next_texture: Prism::TextureCubeMap, blend_factor: Float32) #

Retrieves the current skybox values


[View source]
def night_texture #

[View source]
def size : Float32 #

[View source]