class Light::Point

Defined in:

light.cr

Constructors

Instance Method Summary

Instance methods inherited from class Light

delta_light? : Bool delta_light?, pdf(point : Point, wi : Vector) : Float64 pdf, power : Color power, sample_l(normal : Normal, scene : Scene, point : Point) : IncomingSample
sample_l : OutgoingSample
sample_l

Constructor Detail

def self.new(position : Point, intensity : Color) #

def initialize(@transformation : Transformation, @intensity : Color) @position = transformation.object_to_world(Point.new(0.0))


[View source]

Instance Method Detail

def delta_light? #

[View source]
def pdf(point, wi) #

[View source]
def power #

[View source]
def sample_l(normal : Normal, scene : Scene, point : Point) #

[View source]
def sample_l #

[View source]