Package com.mojang.blaze3d.platform
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 GpuBuffer
private static final org.joml.Vector3f
private static final org.joml.Vector3f
private static final org.joml.Vector3f
private static final org.joml.Vector3f
private static final org.joml.Vector3f
private static final org.joml.Vector3f
private final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
setupFor
(Lighting.Entry pEntry) private void
updateBuffer
(Lighting.Entry p_418264_, org.joml.Vector3f p_418385_, org.joml.Vector3f p_418228_) void
updateLevel
(boolean pNether)
-
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 int paddedSize
-
-
Constructor Details
-
Lighting
public Lighting()
-
-
Method Details
-
updateLevel
public void updateLevel(boolean pNether) -
updateBuffer
private void updateBuffer(Lighting.Entry p_418264_, org.joml.Vector3f p_418385_, org.joml.Vector3f p_418228_) -
setupFor
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-