Class PlanarLightModel

java.lang.Object
codechicken.lib.render.lighting.PlanarLightModel
All Implemented Interfaces:
IVertexOperation
Direct Known Subclasses:
PlanarLightMatrix

public class PlanarLightModel extends Object implements IVertexOperation
Faster precomputed version of LightModel that only works for axis planar sides
  • Field Details

    • standardLightModel

      public static PlanarLightModel standardLightModel
    • colours

      public int[] colours
  • Constructor Details

    • PlanarLightModel

      public PlanarLightModel(int[] colours)
  • 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
      Specified by:
      load in interface IVertexOperation
    • operate

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

      public int operationID()
      Description copied from interface: IVertexOperation
      Get the unique id representing this type of operation. Duplicate operation IDs within the pipeline may have unexpected results. ID should be obtained from CCRenderState.registerOperation() and stored in a static variable
      Specified by:
      operationID in interface IVertexOperation