abstract class Light
- Light
- Reference
- Object
Direct Known Subclasses
Defined in:
light.crInstance Method Summary
- #delta_light? : Bool
- #pdf(point : Point, wi : Vector) : Float64
- #power : Color
-
#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
-
#sample_l : OutgoingSample
Sample a random outgoing ray,
Instance Method Detail
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