Class HexSkyMesh

java.lang.Object
mindustry.graphics.g3d.PlanetMesh
mindustry.graphics.g3d.HexSkyMesh
All Implemented Interfaces:
arc.util.Disposable, GenericMesh

public class HexSkyMesh extends PlanetMesh
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
     

    Fields inherited from class mindustry.graphics.g3d.PlanetMesh

    mesh, planet, shader
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    HexSkyMesh(Planet planet, int seed, float speed, float radius, int divisions, arc.graphics.Color color, int octaves, float persistence, float scl, float thresh)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Should be overridden to set up any shader parameters such as planet position, normals, etc.
    float
     
    void
    render(PlanetParams params, arc.math.geom.Mat3D projection, arc.math.geom.Mat3D transform)
     

    Methods inherited from class mindustry.graphics.g3d.PlanetMesh

    dispose

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface arc.util.Disposable

    isDisposed
  • Field Details

    • speed

      public float speed
  • Constructor Details

    • HexSkyMesh

      public HexSkyMesh(Planet planet, int seed, float speed, float radius, int divisions, arc.graphics.Color color, int octaves, float persistence, float scl, float thresh)
    • HexSkyMesh

      public HexSkyMesh()
  • Method Details

    • relRot

      public float relRot()
    • render

      public void render(PlanetParams params, arc.math.geom.Mat3D projection, arc.math.geom.Mat3D transform)
      Specified by:
      render in interface GenericMesh
      Overrides:
      render in class PlanetMesh
    • preRender

      public void preRender(PlanetParams params)
      Description copied from class: PlanetMesh
      Should be overridden to set up any shader parameters such as planet position, normals, etc.
      Overrides:
      preRender in class PlanetMesh