Class IndirectPointLightRenderer
java.lang.Object
foundry.veil.api.client.render.light.renderer.IndirectLightRenderer<PointLight>
foundry.veil.impl.client.render.light.IndirectPointLightRenderer
- All Implemented Interfaces:
LightTypeRenderer<PointLight>
,AutoCloseable
,org.lwjgl.system.NativeResource
-
Field Summary
Fields inherited from class foundry.veil.api.client.render.light.renderer.IndirectLightRenderer
highResSize, lightSize, lowResSize, maxLights, positionOffset, rangeOffset
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
clearRenderState
(@NotNull LightRenderer lightRenderer, @NotNull List<PointLight> lights) Clears the render state after drawing all lights.protected com.mojang.blaze3d.vertex.MeshData
protected void
Sets up the instanced buffer state.protected void
setupRenderState
(@NotNull LightRenderer lightRenderer, @NotNull List<PointLight> lights) Sets up the render state for drawing all lights.Methods inherited from class foundry.veil.api.client.render.light.renderer.IndirectLightRenderer
free, getVisibleLights, isSupported, prepareLights, renderLights
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
Constructor Details
-
IndirectPointLightRenderer
public IndirectPointLightRenderer()
-
-
Method Details
-
createMesh
protected com.mojang.blaze3d.vertex.MeshData createMesh()- Specified by:
createMesh
in classIndirectLightRenderer<PointLight>
- Returns:
- The mesh data each instanced light will be rendered with use
-
setupBufferState
protected void setupBufferState()Description copied from class:IndirectLightRenderer
Sets up the instanced buffer state.- Specified by:
setupBufferState
in classIndirectLightRenderer<PointLight>
-
setupRenderState
protected void setupRenderState(@NotNull @NotNull LightRenderer lightRenderer, @NotNull @NotNull List<PointLight> lights) Description copied from class:IndirectLightRenderer
Sets up the render state for drawing all lights.- Specified by:
setupRenderState
in classIndirectLightRenderer<PointLight>
- Parameters:
lightRenderer
- The renderer instancelights
- All lights in the order they are in the instanced buffer
-
clearRenderState
protected void clearRenderState(@NotNull @NotNull LightRenderer lightRenderer, @NotNull @NotNull List<PointLight> lights) Description copied from class:IndirectLightRenderer
Clears the render state after drawing all lights.- Specified by:
clearRenderState
in classIndirectLightRenderer<PointLight>
- Parameters:
lightRenderer
- The renderer instancelights
- All lights in the order they are in the instanced buffer
-