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

public class LightModel extends Object implements IVertexOperation
  • 字段详细资料

    • operationIndex

      public static final int operationIndex
    • standardLightModel

      public static LightModel standardLightModel
  • 构造器详细资料

    • LightModel

      public LightModel()
  • 方法详细资料

    • addLight

      public LightModel addLight(LightModel.Light light)
    • setAmbient

      public LightModel setAmbient(Vector3 vec)
    • apply

      public int apply(int colour, Vector3 normal)
      参数:
      colour - The pre-lighting vertex colour. RGBA format
      normal - The normal at the vertex
      返回:
      The lighting applied colour
    • 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
    • reducePlanar

      public PlanarLightModel reducePlanar()