Interface LightTypeRenderer<T extends Light>
- Type Parameters:
T- The type of lights to render
- All Superinterfaces:
AutoCloseable,org.lwjgl.system.NativeResource
- All Known Implementing Classes:
DirectionalLightRenderer,InstancedLightRenderer,PointLightRenderer
Renders all lights of a specific type.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.blaze3d.vertex.BufferBuilder.RenderedBuffervoidrenderLights(LightRenderer lightRenderer, List<T> lights, CullFrustum frustum) Renders all specified lights with this renderer.Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Method Details
-
renderLights
Renders all specified lights with this renderer.
Shaders, custom uniforms, and the way lights are rendered is up to the individual renderer.
- Parameters:
lightRenderer- The light renderer instancelights- The lights to renderfrustum- The culling view frustum
-
createQuad
static com.mojang.blaze3d.vertex.BufferBuilder.RenderedBuffer createQuad()- Returns:
- A full screen unit quad for drawing a light
-