Class PlanetRenderer

java.lang.Object
mindustry.graphics.g3d.PlanetRenderer
All Implemented Interfaces:
Disposable

public class PlanetRenderer extends Object implements Disposable
  • Field Details

    • outlineRad

      public static final float outlineRad
      See Also:
    • camLength

      public static final float camLength
      See Also:
    • outlineColor

      public static final Color outlineColor
    • hoverColor

      public static final Color hoverColor
    • borderColor

      public static final Color borderColor
    • shadowColor

      public static final Color shadowColor
    • cam

      public final Camera3D cam
      Camera used for rendering.
    • batch

      public final VertexBatch3D batch
      Raw vertex batch.
    • projector

      public final PlaneBatch3D projector
    • mat

      public final Mat3D mat
    • bloom

      public final Bloom bloom
    • atmosphere

      public final Mesh atmosphere
    • skybox

      public final CubemapMesh skybox
  • Constructor Details

    • PlanetRenderer

      public PlanetRenderer()
  • Method Details

    • render

      public void render(PlanetParams params)
      Render the entire planet scene to the screen.
    • renderPlanet

      public void renderPlanet(Planet planet, PlanetParams params)
    • renderTransparent

      public void renderTransparent(Planet planet, PlanetParams params)
    • renderOrbit

      public void renderOrbit(Planet planet, PlanetParams params)
    • renderSectors

      public void renderSectors(Planet planet, PlanetParams params)
    • drawArc

      public void drawArc(Planet planet, Vec3 a, Vec3 b)
    • drawArc

      public void drawArc(Planet planet, Vec3 a, Vec3 b, Color from, Color to, float length)
    • drawArc

      public void drawArc(Planet planet, Vec3 a, Vec3 b, Color from, Color to, float length, float timeScale, int pointCount)
    • drawBorders

      public void drawBorders(Sector sector, Color base, float alpha)
    • drawPlane

      public void drawPlane(Sector sector, Runnable run)
    • setPlane

      public void setPlane(Sector sector)
    • fill

      public void fill(Sector sector, Color color, float offset)
    • drawSelection

      public void drawSelection(Sector sector, float alpha)
    • drawSelection

      public void drawSelection(Sector sector, Color color, float stroke, float length)
    • dispose

      public void dispose()
      Description copied from interface: Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface Disposable