class Scene

Defined in:

scene.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(hitables, lights = [] of Light, background = nil) #

[View source]

Instance Method Detail

def background : Background? #

[View source]
def background=(background : Background?) #

[View source]
def fast_hit(ray : Ray) : Bool #

[View source]
def get_background(ray) #

[View source]
def hit(ray : Ray) : HitRecord? #

[View source]
def hitable : Hitable #

[View source]
def hitable=(hitable : Hitable) #

[View source]
def light_sampling_CDF #

[View source]
def light_sampling_CDF=(light_sampling_CDF) #

def lights : Array(Light) #

[View source]
def lights=(lights : Array(Light)) #

[View source]