class CrystalRayTracer::RayTracer

Defined in:

crystal_ray_tracer/ray_tracer.cr

Constant Summary

MaxDepth = 5

Instance Method Summary

Instance Method Detail

def addLight(col, light, pos, norm, scene, thing, rd) #

[View source]
def getNaturalColor(thing, pos, norm, rd, scene) #

[View source]
def getPoint(x : Int32, y : Int32, screenWidth : Int32, screenHeight : Int32, camera) #

[View source]
def getReflectionColor(thing, pos, normal, rd, scene, depth) #

[View source]
def intersections(ray, scene) #

[View source]
def render(scene, image, screenWidth, screenHeight) #

[View source]
def shade(isect : Intersection, scene, depth) #

[View source]
def testRay(ray, scene) #

[View source]
def traceRay(ray, scene, depth) #

[View source]