Class RemappingVertexPipeline
java.lang.Object
net.neoforged.neoforge.client.model.pipeline.RemappingVertexPipeline
- All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer
,IVertexConsumerExtension
public class RemappingVertexPipeline
extends Object
implements com.mojang.blaze3d.vertex.VertexConsumer
Vertex pipeline element that remaps incoming data to another format.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]
private static final int[]
private static final Set
<com.mojang.blaze3d.vertex.VertexFormatElement> private final int[][]
private final org.joml.Vector3f
private final com.mojang.blaze3d.vertex.VertexConsumer
private final org.joml.Vector3f
private final com.mojang.blaze3d.vertex.VertexFormat
private final float[]
private final int[]
private final int[]
-
Constructor Summary
ConstructorsConstructorDescriptionRemappingVertexPipeline
(com.mojang.blaze3d.vertex.VertexConsumer parent, com.mojang.blaze3d.vertex.VertexFormat targetFormat) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.blaze3d.vertex.VertexConsumer
addVertex
(float x, float y, float z) void
com.mojang.blaze3d.vertex.VertexConsumer
misc
(com.mojang.blaze3d.vertex.VertexFormatElement element, int... values) Consumes an unknownVertexFormatElement
as a raw int data array.com.mojang.blaze3d.vertex.VertexConsumer
setColor
(int r, int g, int b, int a) com.mojang.blaze3d.vertex.VertexConsumer
setNormal
(float x, float y, float z) com.mojang.blaze3d.vertex.VertexConsumer
setUv
(float u, float v) com.mojang.blaze3d.vertex.VertexConsumer
setUv1
(int u, int v) com.mojang.blaze3d.vertex.VertexConsumer
setUv2
(int u, int v) 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
addVertex, addVertex, addVertex, addVertex, addVertex, putBulkData, putBulkData, setColor, setColor, setLight, setNormal, setNormal, setOverlay, setWhiteAlpha
-
Field Details
-
KNOWN_ELEMENTS
-
EMPTY_INT_ARRAY
private static final int[] EMPTY_INT_ARRAY -
parent
private final com.mojang.blaze3d.vertex.VertexConsumer parent -
targetFormat
private final com.mojang.blaze3d.vertex.VertexFormat targetFormat -
position
private final org.joml.Vector3f 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
public RemappingVertexPipeline(com.mojang.blaze3d.vertex.VertexConsumer parent, com.mojang.blaze3d.vertex.VertexFormat targetFormat)
-
-
Method Details
-
addVertex
public com.mojang.blaze3d.vertex.VertexConsumer addVertex(float x, float y, float z) - Specified by:
addVertex
in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setNormal
public com.mojang.blaze3d.vertex.VertexConsumer setNormal(float x, float y, float z) - Specified by:
setNormal
in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setColor
public com.mojang.blaze3d.vertex.VertexConsumer setColor(int r, int g, int b, int a) - Specified by:
setColor
in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setUv
public com.mojang.blaze3d.vertex.VertexConsumer setUv(float u, float v) - Specified by:
setUv
in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setUv1
public com.mojang.blaze3d.vertex.VertexConsumer setUv1(int u, int v) - Specified by:
setUv1
in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setUv2
public com.mojang.blaze3d.vertex.VertexConsumer setUv2(int u, int v) - Specified by:
setUv2
in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
misc
public com.mojang.blaze3d.vertex.VertexConsumer misc(com.mojang.blaze3d.vertex.VertexFormatElement element, int... values) 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()
-