Top Level Namespace

Defined in:

Constant Summary

PointCount = 256
R = Math.cos(Math::PI / 4.0)
ValidSceneNames = ["cover", "two-spheres"]

Method Summary

Method Detail

def degrees_to_radians(degrees : Float64) #

[View source]
def random_in_hemisphere(normal : Vec3) #

[View source]
def random_in_unit_disc #

[View source]
def random_in_unit_sphere #

[View source]
def random_unit_vector #

[View source]
def ray_color(r : Ray, world : Hittable, depth : Int32) : Color #

[View source]
def render(image_width, image_height, samples_per_pixel, max_depth, scene_name) #

[View source]