Class RenderStyle.Billboard

java.lang.Object
foundry.veil.api.quasar.particle.RenderStyle
foundry.veil.api.quasar.particle.RenderStyle.Billboard
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource
Enclosing class:
RenderStyle

@Internal public static final class RenderStyle.Billboard extends RenderStyle
  • Constructor Details

    • Billboard

      public Billboard()
  • Method Details

    • createMesh

      protected com.mojang.blaze3d.vertex.MeshData createMesh()
      Specified by:
      createMesh in class RenderStyle
      Returns:
      The MeshData to use for each particle.
    • setupBufferState

      protected void setupBufferState(VertexArrayBuilder builder)
      Description copied from class: RenderStyle
      Set up the vertex attribute arrays to use for each particle.
      Specified by:
      setupBufferState in class RenderStyle
      Parameters:
      builder - The builder associated with the VertexArray
    • putBufferData

      protected void putBufferData(QuasarParticle particle, net.minecraft.client.Camera camera, ByteBuffer buffer)
      Description copied from class: RenderStyle
      Put information about each particle into the vertex attribute array.
      Specified by:
      putBufferData in class RenderStyle
      Parameters:
      particle - The particle being loaded
      camera - The camera rendering the particles
      buffer - The buffer of the current VertexArray