Class DirectionalLightRenderer
java.lang.Object
foundry.veil.render.deferred.light.renderer.DirectionalLightRenderer
- All Implemented Interfaces:
LightTypeRenderer<DirectionalLight>,AutoCloseable,org.lwjgl.system.NativeResource
Renders directional lights.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()voidrenderLights(LightRenderer lightRenderer, List<DirectionalLight> lights, CullFrustum frustum) Renders all specified lights with this renderer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lwjgl.system.NativeResource
close
-
Constructor Details
-
DirectionalLightRenderer
public DirectionalLightRenderer()
-
-
Method Details
-
renderLights
public void renderLights(LightRenderer lightRenderer, List<DirectionalLight> lights, CullFrustum frustum) Description copied from interface:LightTypeRendererRenders all specified lights with this renderer.
Shaders, custom uniforms, and the way lights are rendered is up to the individual renderer.
- Specified by:
renderLightsin interfaceLightTypeRenderer<DirectionalLight>- Parameters:
lightRenderer- The light renderer instancelights- The lights to renderfrustum- The culling view frustum
-
free
public void free()- Specified by:
freein interfaceorg.lwjgl.system.NativeResource
-