Class DirectionalLightRenderer

java.lang.Object
foundry.veil.render.deferred.light.renderer.DirectionalLightRenderer
All Implemented Interfaces:
LightTypeRenderer<DirectionalLight>, AutoCloseable, org.lwjgl.system.NativeResource

public class DirectionalLightRenderer extends Object implements LightTypeRenderer<DirectionalLight>
Renders directional lights.
  • Constructor Details

    • DirectionalLightRenderer

      public DirectionalLightRenderer()
  • Method Details

    • renderLights

      public void renderLights(LightRenderer lightRenderer, List<DirectionalLight> lights, CullFrustum frustum)
      Description copied from interface: LightTypeRenderer

      Renders all specified lights with this renderer.

      Shaders, custom uniforms, and the way lights are rendered is up to the individual renderer.

      Specified by:
      renderLights in interface LightTypeRenderer<DirectionalLight>
      Parameters:
      lightRenderer - The light renderer instance
      lights - The lights to render
      frustum - The culling view frustum
    • free

      public void free()
      Specified by:
      free in interface org.lwjgl.system.NativeResource