Class SideAttribute

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

public class SideAttribute extends VertexAttribute<int[]>
Sets the side state in CCRS based on the provided model. If the model does not have side data it requires normals.
  • Field Details

    • attributeKey

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

    • SideAttribute

      public SideAttribute()
  • 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