Class VolumeRenderer

java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.scene.system.render.VolumeRenderer
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IObserver, IRenderSystem, Comparable<IRenderSystem>

public class VolumeRenderer extends AbstractRenderSystem implements IObserver
Renders models with arbitrary shaders, kept in a map. The shaders themselves are defined in the Volume component.
  • Field Details

    • batches

      protected final com.badlogic.gdx.utils.IntMap<IntModelBatch> batches
  • Constructor Details

    • VolumeRenderer

      public VolumeRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas)
      Creates a new volume model renderer which may use a number of different batches.
      Parameters:
      rg - The render group.
      alphas - The alphas list.
  • Method Details

    • renderStud

      public void renderStud(List<IRenderable> renderables, ICamera camera, double t)
      Specified by:
      renderStud in class AbstractRenderSystem
    • mustRender

      protected boolean mustRender()
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.