Package com.mojang.blaze3d.vertex
Class SheetedDecalTextureGenerator
java.lang.Object
com.mojang.blaze3d.vertex.SheetedDecalTextureGenerator
- All Implemented Interfaces:
VertexConsumer
,IVertexConsumerExtension
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.joml.Matrix4f
private final VertexConsumer
private final org.joml.Vector3f
private final org.joml.Matrix3f
private final float
private final org.joml.Vector3f
private float
private float
private float
-
Constructor Summary
ConstructorDescriptionSheetedDecalTextureGenerator
(VertexConsumer p_260211_, PoseStack.Pose p_324244_, float p_259312_) -
Method Summary
Modifier and TypeMethodDescriptionaddVertex
(float p_350285_, float p_350727_, float p_350832_) setColor
(int p_350431_, int p_350486_, int p_350631_, int p_350495_) setNormal
(float p_350270_, float p_350794_, float p_350323_) setUv
(float p_351041_, float p_350355_) setUv1
(int p_350521_, int p_350750_) setUv2
(int p_351012_, int p_350527_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.client.extensions.IVertexConsumerExtension
applyBakedLighting, applyBakedNormals, misc, putBulkData
Methods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer
addVertex, addVertex, addVertex, addVertex, addVertex, putBulkData, putBulkData, setColor, setColor, setLight, setNormal, setOverlay, setWhiteAlpha
-
Field Details
-
delegate
-
cameraInversePose
private final org.joml.Matrix4f cameraInversePose -
normalInversePose
private final org.joml.Matrix3f normalInversePose -
textureScale
private final float textureScale -
worldPos
private final org.joml.Vector3f worldPos -
normal
private final org.joml.Vector3f normal -
x
private float x -
y
private float y -
z
private float z
-
-
Constructor Details
-
SheetedDecalTextureGenerator
public SheetedDecalTextureGenerator(VertexConsumer p_260211_, PoseStack.Pose p_324244_, float p_259312_)
-
-
Method Details
-
addVertex
- Specified by:
addVertex
in interfaceVertexConsumer
-
setColor
- Specified by:
setColor
in interfaceVertexConsumer
-
setUv
- Specified by:
setUv
in interfaceVertexConsumer
-
setUv1
- Specified by:
setUv1
in interfaceVertexConsumer
-
setUv2
- Specified by:
setUv2
in interfaceVertexConsumer
-
setNormal
- Specified by:
setNormal
in interfaceVertexConsumer
-