Class InstancedRenderSystem.InstancedModel

java.lang.Object
gaiasky.render.system.InstancedRenderSystem.InstancedModel
Enclosing class:
InstancedRenderSystem

public static class InstancedRenderSystem.InstancedModel extends Object
Holds temporary instanced model data.
  • Field Details

    • sizeOffset

      public int sizeOffset
    • particlePosOffset

      public int particlePosOffset
    • properMotionOffset

      public int properMotionOffset
    • textureIndexOffset

      public int textureIndexOffset
    • nVariOffset

      public int nVariOffset
    • variMagsOffset

      public int variMagsOffset
    • variTimesOffset

      public int variTimesOffset
    • numVertices

      public int numVertices
      Number of vertices.
    • modelVertexSize

      public int modelVertexSize
      Vertex size in floats (4-bytes).
    • numIndices

      public int numIndices
      Number of indices.
    • vertices

      public float[] vertices
    • indices

      public int[] indices
    • instanceAttributes

      public float[] instanceAttributes
  • Constructor Details

    • InstancedModel

      public InstancedModel(IntMesh mesh)
    • InstancedModel

      public InstancedModel(int numModelVertices, int modelVertexSize, int numIndices)
    • InstancedModel

      public InstancedModel(int numModelVertices, int modelVertexSize)
  • Method Details

    • ensureInstanceAttribsSize

      public void ensureInstanceAttribsSize(int size)
    • initializeLists

      protected void initializeLists()