Package limn.render3d
Interface Light
- All Known Implementing Classes:
Light.Directional,Light.Point,Light.Spot
An analytic light for the PBR pass, added to a
RenderPass with
RenderPass.addLight(limn.render3d.Light). Colors are linear; intensity scales them.
Unlit/SimpleLit materials ignore these (they read RenderPass.light(limn.math.Vec3, limn.math.Vec3, float)).-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAn infinitely distant light (sun):directionpoints toward the source.static final recordAn omnidirectional light atpositionwith inverse-square falloff.static final recordA cone light atpositionaimed alongdirection(pointing away from the light). -
Method Summary
-
Method Details
-
color
Vec3 color() -
intensity
float intensity()
-