Class Lighting
java.lang.Object
com.mojang.blaze3d.platform.Lighting
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GpuBufferprivate static final org.joml.Vector3fprivate static final org.joml.Vector3fprivate static final org.joml.Vector3fprivate static final org.joml.Vector3fprivate static final org.joml.Vector3fprivate static final org.joml.Vector3fprivate final longstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidsetupFor(Lighting.Entry entry) private voidupdateBuffer(Lighting.Entry entry, org.joml.Vector3f light0, org.joml.Vector3f light1) void
-
Field Details
-
DIFFUSE_LIGHT_0
private static final org.joml.Vector3f DIFFUSE_LIGHT_0 -
DIFFUSE_LIGHT_1
private static final org.joml.Vector3f DIFFUSE_LIGHT_1 -
NETHER_DIFFUSE_LIGHT_0
private static final org.joml.Vector3f NETHER_DIFFUSE_LIGHT_0 -
NETHER_DIFFUSE_LIGHT_1
private static final org.joml.Vector3f NETHER_DIFFUSE_LIGHT_1 -
INVENTORY_DIFFUSE_LIGHT_0
private static final org.joml.Vector3f INVENTORY_DIFFUSE_LIGHT_0 -
INVENTORY_DIFFUSE_LIGHT_1
private static final org.joml.Vector3f INVENTORY_DIFFUSE_LIGHT_1 -
UBO_SIZE
public static final int UBO_SIZE -
buffer
-
paddedSize
private final long paddedSize
-
-
Constructor Details
-
Lighting
public Lighting()
-
-
Method Details
-
updateLevel
-
updateBuffer
-
setupFor
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-