Package mindustry.graphics.g3d
Class HexSkyMesh
java.lang.Object
mindustry.graphics.g3d.PlanetMesh
mindustry.graphics.g3d.HexSkyMesh
- All Implemented Interfaces:
arc.util.Disposable,GenericMesh
-
Field Summary
FieldsFields inherited from class mindustry.graphics.g3d.PlanetMesh
mesh, planet, shader -
Constructor Summary
ConstructorsConstructorDescriptionHexSkyMesh(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 TypeMethodDescriptionvoidpreRender(PlanetParams params) Should be overridden to set up any shader parameters such as planet position, normals, etc.floatrelRot()voidrender(PlanetParams params, arc.math.geom.Mat3D projection, arc.math.geom.Mat3D transform) Methods inherited from class mindustry.graphics.g3d.PlanetMesh
disposeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
renderin interfaceGenericMesh- Overrides:
renderin classPlanetMesh
-
preRender
Description copied from class:PlanetMeshShould be overridden to set up any shader parameters such as planet position, normals, etc.- Overrides:
preRenderin classPlanetMesh
-