java.lang.Object
committee.nova.mods.avaritia.api.client.model.Quad.Vertex
封闭类:
Quad

public static class Quad.Vertex extends Object
A simple vertex format.
  • 字段详细资料

    • format

      public CachedFormat format
    • raw

      public float[][] raw
      The raw data.
    • vec

      public float[] vec
    • normal

      public float[] normal
    • color

      public float[] color
    • uv

      public float[] uv
    • overlay

      public float[] overlay
    • lightmap

      public float[] lightmap
  • 构造器详细资料

    • Vertex

      public Vertex(CachedFormat format)
      Create a new Vertex.
      参数:
      format - The format for the vertex.
    • Vertex

      public Vertex(Quad.Vertex other)
      Creates a new Vertex using the data inside the other. A copy!
      参数:
      other - The other.
  • 方法详细资料

    • preProcess

      public void preProcess()
      Pulls references to the individual element's arrays inside raw. Modifying the individual element arrays will update raw.
    • dx

      public float dx(int s)
      Gets the 2d X coord for the given axis.
      参数:
      s - The axis. side >> 1
      返回:
      The x coord.
    • dy

      public float dy(int s)
      Gets the 2d Y coord for the given axis.
      参数:
      s - The axis. side >> 1
      返回:
      The y coord.
    • interpColorFrom

      public Quad.Vertex interpColorFrom(InterpHelper interpHelper, Quad.Vertex[] others)
      Interpolates the new color values for this Vertex using the others as a reference.
      参数:
      interpHelper - The InterpHelper to use.
      others - The other Vertices to use as a template.
      返回:
      The same Vertex.
    • interpUVFrom

      public Quad.Vertex interpUVFrom(InterpHelper interpHelper, Quad.Vertex[] others)
      Interpolates the new UV values for this Vertex using the others as a reference.
      参数:
      interpHelper - The InterpHelper to use.
      others - The other Vertices to use as a template.
      返回:
      The same Vertex.
    • interpLightMapFrom

      public Quad.Vertex interpLightMapFrom(InterpHelper interpHelper, Quad.Vertex[] others)
      Interpolates the new LightMap values for this Vertex using the others as a reference.
      参数:
      interpHelper - The InterpHelper to use.
      others - The other Vertices to use as a template.
      返回:
      The same Vertex.
    • copy

      public Quad.Vertex copy()
      Copies this Vertex to a new one.
      返回:
      The new Vertex.
    • reset

      public void reset(CachedFormat format)
      Resets the Vertex to a new format. Expands the raw array if needed.
      参数:
      format - The format to reset to.