Class NormalAttribute

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

public class NormalAttribute extends VertexAttribute<Vector3[]>
Apples normals to the render operation. If the model is a planar model it uses known normals.
  • Field Details

  • Constructor Details

    • NormalAttribute

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