Class RemappingVertexPipeline
java.lang.Object
net.neoforged.neoforge.client.model.pipeline.RemappingVertexPipeline
- All Implemented Interfaces:
VertexConsumer
,IVertexConsumerExtension
Vertex pipeline element that remaps incoming data to another format.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int[]
private static final int[]
private static final Set<VertexFormatElement>
private final int[][]
private final Map<VertexFormatElement,
Integer> private final org.joml.Vector3f
private final VertexConsumer
private final org.joml.Vector3d
private final VertexFormat
private final float[]
private final int[]
private final int[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncolor
(int r, int g, int b, int a) void
defaultColor
(int r, int g, int b, int a) void
misc
(VertexFormatElement element, int... values) Consumes an unknownVertexFormatElement
as a raw int data array.normal
(float x, float y, float z) overlayCoords
(int u, int v) void
uv
(float u, float v) uv2
(int u, int v) vertex
(double x, double y, double z) 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, putBulkData
Methods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer
color, color, normal, overlayCoords, putBulkData, putBulkData, putBulkData, uv2, vertex, vertex
-
Field Details
-
KNOWN_ELEMENTS
-
EMPTY_INT_ARRAY
private static final int[] EMPTY_INT_ARRAY -
parent
-
targetFormat
-
position
private final org.joml.Vector3d position -
normal
private final org.joml.Vector3f normal -
color
private final int[] color -
uv0
private final float[] uv0 -
uv1
private final int[] uv1 -
uv2
private final int[] uv2 -
miscElementIds
-
misc
private final int[][] misc
-
-
Constructor Details
-
RemappingVertexPipeline
-
-
Method Details
-
vertex
- Specified by:
vertex
in interfaceVertexConsumer
-
normal
- Specified by:
normal
in interfaceVertexConsumer
-
color
- Specified by:
color
in interfaceVertexConsumer
-
uv
- Specified by:
uv
in interfaceVertexConsumer
-
overlayCoords
- Specified by:
overlayCoords
in interfaceVertexConsumer
-
uv2
- Specified by:
uv2
in interfaceVertexConsumer
-
misc
Description copied from interface:IVertexConsumerExtension
Consumes an unknownVertexFormatElement
as a raw int data array.If the consumer needs to store the data for later use, it must copy it. There are no guarantees on immutability.
- Specified by:
misc
in interfaceIVertexConsumerExtension
-
endVertex
public void endVertex()- Specified by:
endVertex
in interfaceVertexConsumer
-
defaultColor
public void defaultColor(int r, int g, int b, int a) - Specified by:
defaultColor
in interfaceVertexConsumer
-
unsetDefaultColor
public void unsetDefaultColor()- Specified by:
unsetDefaultColor
in interfaceVertexConsumer
-