Class SimpleBrightnessModel

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

public class SimpleBrightnessModel extends Object implements IVertexOperation
Simple brightness model that only works for axis planar sides
  • Field Details

    • operationIndex

      public static final int operationIndex
    • instance

      public static SimpleBrightnessModel instance
    • access

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

      public net.minecraft.core.BlockPos pos
  • Constructor Details

    • SimpleBrightnessModel

      public SimpleBrightnessModel()
  • Method Details

    • locate

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

      public int sample(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
    • 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