Package mindustry.graphics.g3d
Class HexSkyMesh
java.lang.Object
mindustry.graphics.g3d.PlanetMesh
mindustry.graphics.g3d.HexSkyMesh
- All Implemented Interfaces:
GenericMesh
-
Field Summary
Fields inherited from class mindustry.graphics.g3d.PlanetMesh
mesh, planet, shader
-
Constructor Summary
ConstructorDescriptionHexSkyMesh
(Planet planet, int seed, float speed, float radius, int divisions, Color color, int octaves, float persistence, float scl, float thresh) -
Method Summary
Modifier and TypeMethodDescriptionvoid
preRender
(PlanetParams params) Should be overridden to set up any shader parameters such as planet position, normals, etc.float
relRot()
void
render
(PlanetParams params, Mat3D projection, Mat3D transform)
-
Field Details
-
speed
public float speed
-
-
Constructor Details
-
HexSkyMesh
-
HexSkyMesh
public HexSkyMesh()
-
-
Method Details
-
relRot
public float relRot() -
render
- Specified by:
render
in interfaceGenericMesh
- Overrides:
render
in classPlanetMesh
-
preRender
Description copied from class:PlanetMesh
Should be overridden to set up any shader parameters such as planet position, normals, etc.- Overrides:
preRender
in classPlanetMesh
-