Class QuadClamper
java.lang.Object
codechicken.lib.model.pipeline.QuadTransformer
codechicken.lib.model.pipeline.transformers.QuadClamper
- All Implemented Interfaces:
IVertexConsumer,IPipelineConsumer
This transformer simply clamps the vertices inside the provided box.
You probably want to Re-Interpolate the UV's, Color, and Lmap, see
QuadReInterpolator-
Field Summary
FieldsFields inherited from class codechicken.lib.model.pipeline.QuadTransformer
consumer, format, quad -
Constructor Summary
ConstructorsConstructorDescriptionQuadClamper(IVertexConsumer parent, Cuboid6 bounds) QuadClamper(IVertexConsumer parent, net.minecraft.world.phys.AABB bounds) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetClampBounds(Cuboid6 bounds) voidsetClampBounds(net.minecraft.world.phys.AABB bounds) booleanCalled to transform the vertices.Methods inherited from class codechicken.lib.model.pipeline.QuadTransformer
epsComp, getVertexFormat, onFull, put, put, reset, setApplyDiffuseLighting, setInputQuad, setParent, setQuadOrientation, setQuadTint, setTextureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface codechicken.lib.model.IVertexConsumer
put
-
Field Details
-
FACTORY
-
-
Constructor Details
-
QuadClamper
-
QuadClamper
-
-
Method Details
-
setClampBounds
public void setClampBounds(net.minecraft.world.phys.AABB bounds) -
setClampBounds
-
transform
public boolean transform()Description copied from class:QuadTransformerCalled to transform the vertices.- Specified by:
transformin classQuadTransformer- Returns:
- If the transformer should pipe the quad.
-