Class QuadReInterpolator
java.lang.Object
codechicken.lib.model.pipeline.QuadTransformer
codechicken.lib.model.pipeline.transformers.QuadReInterpolator
- All Implemented Interfaces:
IVertexConsumer,IPipelineConsumer
This transformer Re-Interpolates the Color, UV's and LightMaps.
Use this after all transformations that translate vertices in the pipeline.
This Transformation can only be used in the BakedPipeline.
-
Field Summary
FieldsFields inherited from class codechicken.lib.model.pipeline.QuadTransformer
consumer, format, quad -
Method Summary
Modifier and TypeMethodDescriptionvoidreset(CachedFormat format) Resets the Consumer to the new format.voidsetInputQuad(Quad quad) The quad at the start of the transformation.booleanCalled to transform the vertices.Methods inherited from class codechicken.lib.model.pipeline.QuadTransformer
epsComp, getVertexFormat, onFull, put, put, setApplyDiffuseLighting, 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
-
-
Method Details
-
reset
Description copied from interface:IPipelineConsumerResets the Consumer to the new format. This should resize any internal arrays if needed, ready for the new vertex data.- Specified by:
resetin interfaceIPipelineConsumer- Overrides:
resetin classQuadTransformer- Parameters:
format- The format to reset to.
-
setInputQuad
Description copied from interface:IPipelineConsumerThe quad at the start of the transformation. This is useful for obtaining the vertex data before any transformations have been applied, such as interpolation, SeeQuadReInterpolator. When overriding this make sure you call setInputQuad on your parent consumer too.- Specified by:
setInputQuadin interfaceIPipelineConsumer- Overrides:
setInputQuadin classQuadTransformer- Parameters:
quad- The quad.
-
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.
-