Class TransformingVertexPipeline

java.lang.Object
net.neoforged.neoforge.client.model.pipeline.VertexConsumerWrapper
net.neoforged.neoforge.client.model.pipeline.TransformingVertexPipeline
All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer, IVertexConsumerExtension

public class TransformingVertexPipeline extends VertexConsumerWrapper
Vertex pipeline element that applies a transformation to incoming geometry.
  • Field Details

    • transformation

      private final com.mojang.math.Transformation transformation
  • Constructor Details

    • TransformingVertexPipeline

      public TransformingVertexPipeline(com.mojang.blaze3d.vertex.VertexConsumer parent, com.mojang.math.Transformation transformation)
  • Method Details

    • addVertex

      public com.mojang.blaze3d.vertex.VertexConsumer addVertex(float x, float y, float z)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
      Overrides:
      addVertex in class VertexConsumerWrapper
    • setNormal

      public com.mojang.blaze3d.vertex.VertexConsumer setNormal(float x, float y, float z)
      Specified by:
      setNormal in interface com.mojang.blaze3d.vertex.VertexConsumer
      Overrides:
      setNormal in class VertexConsumerWrapper