abstract class Light

Direct Known Subclasses

Defined in:


Instance Method Summary

Instance Method Detail

abstract def delta_light? : Bool #

[View source]
abstract def pdf(point : Point, wi : Vector) : Float64 #

[View source]
abstract def power : Color #

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

Take a point in the scene and return:

  • A vector from this point to the light
  • The color emitted in this direction
  • A VisibilityTester to check if the path to the light is unoccluded
  • The pdf for that vector / ray

[View source]
abstract def sample_l : OutgoingSample #

Sample a random outgoing ray,

[View source]