Package limn.render3d

Interface Light

All Known Implementing Classes:
Light.Directional, Light.Point, Light.Spot

public sealed interface Light permits 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 Classes
    Modifier and Type
    Interface
    Description
    static final record 
    An infinitely distant light (sun): direction points toward the source.
    static final record 
    An omnidirectional light at position with inverse-square falloff.
    static final record 
    A cone light at position aimed along direction (pointing away from the light).
  • Method Summary

    Modifier and Type
    Method
    Description
     
    float
     
  • Method Details

    • color

      Vec3 color()
    • intensity

      float intensity()