Class ColourAttribute

java.lang.Object
codechicken.lib.render.pipeline.VertexAttribute<int[]>
codechicken.lib.render.pipeline.attribute.ColourAttribute
All Implemented Interfaces:
IVertexOperation

public class ColourAttribute extends VertexAttribute<int[]>
Sets colour in CCRS to the specified colour in the model.
  • Field Details

    • attributeKey

      public static final AttributeKey<int[]> attributeKey
  • Constructor Details

    • ColourAttribute

      public ColourAttribute()
  • Method Details

    • load

      public boolean load(CCRenderState ccrs)
      Description copied from interface: IVertexOperation
      Load any required references and add dependencies to the pipeline based on the current model (may be null) Return false if this operation is redundant in the pipeline with the given model
    • operate

      public void operate(CCRenderState ccrs)
      Description copied from interface: IVertexOperation
      Perform the operation on the current render state