java.lang.Object
committee.nova.mods.avaritia.api.client.render.lighting.LightMatrix
所有已实现的接口:
IVertexOperation

public class LightMatrix extends Object implements IVertexOperation
Note that when using the class as a vertex transformer, the vertices are assumed to be within the BB (x, y, z) -> (x+1, y+1, z+1)
  • 嵌套类概要

    从接口继承的嵌套类/接口 committee.nova.mods.avaritia.api.client.render.pipeline.IVertexOperation

    IVertexOperation.VertexOperationRegistry
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    net.minecraft.world.level.BlockAndTintGetter
     
    float[][]
     
    int[][]
     
    int
     
    static final int
     
    net.minecraft.core.BlockPos
     
    static final int[][]
     
    static final float[]
     
    static final int[][]
    The 9 positions in the sample array for each side, sides >= 6 are centered on sample 13 (the block itself)
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    float[]
    ao(int side)
     
    int[]
    brightness(int side)
     
    protected void
    interp(int s, int q, int a, int b, int c, int d)
     
    static float
    interpAO(float a, float b, float c, float d)
     
    static int
    interpBrightness(int a, int b, int c, int d)
     
    boolean
    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
    void
    locate(net.minecraft.world.level.BlockAndTintGetter a, net.minecraft.core.BlockPos bPos)
     
    void
    Perform the operation on the current render state
    int
    Get the unique id representing this type of operation.
    void
    sample(int i)
     
    void
    sideSample(int side)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • operationIndex

      public static final int operationIndex
    • ssamplem

      public static final int[][] ssamplem
      The 9 positions in the sample array for each side, sides >= 6 are centered on sample 13 (the block itself)
    • qsamplem

      public static final int[][] qsamplem
    • sideao

      public static final float[] sideao
    • computed

      public int computed
    • ao

      public float[][] ao
    • brightness

      public int[][] brightness
    • access

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

      public net.minecraft.core.BlockPos pos
  • 构造器详细资料

    • LightMatrix

      public LightMatrix()
  • 方法详细资料

    • interpAO

      public static float interpAO(float a, float b, float c, float d)
    • interpBrightness

      public static int interpBrightness(int a, int b, int c, int d)
    • locate

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

      public void sample(int i)
    • brightness

      public int[] brightness(int side)
    • ao

      public float[] ao(int side)
    • sideSample

      public void sideSample(int side)
    • interp

      protected void interp(int s, int q, int a, int b, int c, int d)
    • load

      public boolean load(CCRenderState ccrs)
      从接口复制的说明: 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
      指定者:
      load 在接口中 IVertexOperation
    • operate

      public void operate(CCRenderState ccrs)
      从接口复制的说明: IVertexOperation
      Perform the operation on the current render state
      指定者:
      operate 在接口中 IVertexOperation
    • operationID

      public int operationID()
      从接口复制的说明: 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
      指定者:
      operationID 在接口中 IVertexOperation