abstract class Raytracer::Base

Direct Known Subclasses

Defined in:

raytracer.cr

Constructors

Instance Method Summary

Instance methods inherited from class Raytracer

camera : Camera camera, camera=(camera : Camera) camera=, estimate_background(hit, bsdf, wo, flags = ~BxDF::Type::Specular) estimate_background, estimate_direct(light, hit, bsdf, wo, flags = ~BxDF::Type::Specular) estimate_direct, gamma_correction : Float64 gamma_correction, gamma_correction=(gamma_correction : Float64) gamma_correction=, height : Int32 height, height=(height : Int32) height=, render(filename, adaptive = false) render, render_to_canvas(filename : String, adaptive = false) render_to_canvas, samples : Int32 samples, samples=(samples : Int32) samples=, scene : Scene scene, scene=(scene : Scene) scene=, uniform_sample_all_lights(hit, bsdf, wo) uniform_sample_all_lights, uniform_sample_one_light(hit, bsdf, wo) uniform_sample_one_light, width : Int32 width, width=(width : Int32) width=

Constructor methods inherited from class Raytracer

new(dimensions, camera, samples, scene) new

Constructor Detail

def self.new(dimensions, camera, samples, scene, filter = Filter::Box.new(0.5)) #

[View source]

Instance Method Detail

abstract def cast_ray(ray) #

[View source]
def filter : Filter #

[View source]
def filter=(filter : Filter) #

[View source]
def print_pixel(color, mode = :truecolor) #

[View source]
def recursion_depth : Int32 #

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

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

[View source]
def sample_pixel(sample, x, y, samples) #

[View source]