Class PlanarLightMatrix

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

public class PlanarLightMatrix extends PlanarLightModel
  • Field Details

    • operationIndex

      public static final int operationIndex
    • instance

      public static PlanarLightMatrix instance
    • access

      public net.minecraft.world.level.BlockAndTintGetter access
    • pos

      public net.minecraft.core.BlockPos pos
    • brightness

      public int[] brightness
  • Constructor Details

    • PlanarLightMatrix

      public PlanarLightMatrix()
  • Method Details

    • locate

      public PlanarLightMatrix locate(net.minecraft.world.level.BlockAndTintGetter a, net.minecraft.core.BlockPos bPos)
    • brightness

      public int brightness(int side)
    • 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
      Overrides:
      load in class PlanarLightModel
    • 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
      Overrides:
      operate in class PlanarLightModel
    • 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
      Overrides:
      operationID in class PlanarLightModel