class Light::Point
- Light::Point
- Light
- Reference
- Object
Defined in:
light.crConstructors
-
.new(position : Point, intensity : Color)
def initialize(@transformation : Transformation, @intensity : Color) @position = transformation.object_to_world(Point.new(0.0))
Instance Method Summary
- #delta_light?
- #pdf(point, wi)
- #power
- #sample_l(normal : Normal, scene : Scene, point : Point)
- #sample_l
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) : IncomingSamplesample_l : OutgoingSample sample_l
Constructor Detail
def initialize(@transformation : Transformation, @intensity : Color) @position = transformation.object_to_world(Point.new(0.0))