Package mindustry.graphics.g3d
Class PlanetMesh
java.lang.Object
mindustry.graphics.g3d.PlanetMesh
- All Implemented Interfaces:
GenericMesh
- Direct Known Subclasses:
HexMesh
,HexSkyMesh
,ShaderSphereMesh
Defines a mesh that is rendered for a planet. Subclasses provide a mesh and a shader.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
preRender
(PlanetParams params) Should be overridden to set up any shader parameters such as planet position, normals, etc.void
render
(PlanetParams params, Mat3D projection, Mat3D transform)
-
Field Details
-
mesh
-
planet
-
shader
-
-
Constructor Details
-
PlanetMesh
-
PlanetMesh
public PlanetMesh()
-
-
Method Details
-
preRender
Should be overridden to set up any shader parameters such as planet position, normals, etc. -
render
- Specified by:
render
in interfaceGenericMesh
-