abstract class Raytracer

Direct Known Subclasses

Defined in:

raytracer.cr
raytracers/normal.cr
raytracers/path.cr
raytracers/simple.cr
raytracers/sppm.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(dimensions, camera, samples, scene) #

[View source]

Instance Method Detail

def camera : Camera #

[View source]
def camera=(camera : Camera) #

[View source]
def estimate_background(hit, bsdf, wo, flags = ~BxDF::Type::Specular) #

[View source]
def estimate_direct(light, hit, bsdf, wo, flags = ~BxDF::Type::Specular) #

[View source]
def gamma_correction : Float64 #

[View source]
def gamma_correction=(gamma_correction : Float64) #

[View source]
def height : Int32 #

[View source]
def height=(height : Int32) #

[View source]
def render(filename, adaptive = false) #

[View source]
abstract def render_to_canvas(filename : String, adaptive = false) #

[View source]
def samples : Int32 #

[View source]
def samples=(samples : Int32) #

[View source]
def scene : Scene #

[View source]
def scene=(scene : Scene) #

[View source]
def uniform_sample_all_lights(hit, bsdf, wo) #

[View source]
def uniform_sample_one_light(hit, bsdf, wo) #

[View source]
def width : Int32 #

[View source]
def width=(width : Int32) #

[View source]