struct HitRecord

Overview

Container for all kinds of parameters about an intersection between a Ray and some Hitable.

Defined in:

hitable.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(t, point, normal, material, object, u, v) #

[View source]

Instance Method Detail

def material : Material #

Material of the Hitable at the point it was hit in


[View source]
def normal : Normal #

Normal of the Hitable at the point it was hit in


[View source]
def object : Hitable #

The actual object that was hit.

NOTE This is only needed for area lights right now


[View source]
def point : Point #

[View source]
def t : Float64 #

Parameter of the ray at which the intersection occured


[View source]
def u : Float64 #

Texture coordinates of the hit point


[View source]
def v : Float64 #

Texture coordinates of the hit point


[View source]