Class AreaLightRenderer
java.lang.Object
foundry.veil.api.client.render.light.renderer.InstancedLightRenderer<AreaLightData>
foundry.veil.impl.client.render.light.AreaLightRenderer
- All Implemented Interfaces:
LightTypeRenderer<AreaLightData>
,AutoCloseable
,org.lwjgl.system.NativeResource
-
Field Summary
Fields inherited from class foundry.veil.api.client.render.light.renderer.InstancedLightRenderer
lightSize, maxLights
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.mojang.blaze3d.vertex.MeshData
protected @Nullable net.minecraft.client.renderer.RenderType
getRenderType
(List<? extends LightRenderHandle<AreaLightData>> lights) Calculates the render type to use for the specified lights.protected void
setupBufferState
(VertexArrayBuilder builder) Sets up the instanced buffer state.Methods inherited from class foundry.veil.api.client.render.light.renderer.InstancedLightRenderer
addLight, free, getLights, getVisibleLights, prepareLights, renderLights, steal
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
-
AreaLightRenderer
public AreaLightRenderer()
-
-
Method Details
-
createMesh
protected com.mojang.blaze3d.vertex.MeshData createMesh()- Specified by:
createMesh
in classInstancedLightRenderer<AreaLightData>
- Returns:
- The mesh data each instanced light will be rendered with use
-
setupBufferState
Description copied from class:InstancedLightRenderer
Sets up the instanced buffer state.- Specified by:
setupBufferState
in classInstancedLightRenderer<AreaLightData>
-
getRenderType
@Nullable protected @Nullable net.minecraft.client.renderer.RenderType getRenderType(List<? extends LightRenderHandle<AreaLightData>> lights) Description copied from class:InstancedLightRenderer
Calculates the render type to use for the specified lights.- Specified by:
getRenderType
in classInstancedLightRenderer<AreaLightData>
- Parameters:
lights
- All lights in the order they are in the instanced buffer- Returns:
- The render type to use
-