Package mindustry.graphics.g3d
Class PlanetRenderer
java.lang.Object
mindustry.graphics.g3d.PlanetRenderer
- All Implemented Interfaces:
arc.util.Disposable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal arc.graphics.Meshfinal arc.graphics.g3d.VertexBatch3DRaw vertex batch.final arc.graphics.g2d.Bloomstatic final arc.graphics.Colorfinal arc.graphics.g3d.Camera3DCamera used for rendering.static final floatstatic final arc.graphics.Colorfinal arc.math.geom.Mat3Dstatic final arc.graphics.Colorstatic final floatfinal arc.graphics.g3d.PlaneBatch3Dstatic final arc.graphics.Colorfinal CubemapMesh -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voidvoiddrawArc(Planet planet, arc.math.geom.Vec3 a, arc.math.geom.Vec3 b, arc.graphics.Color from, arc.graphics.Color to, float length) voiddrawArc(Planet planet, arc.math.geom.Vec3 a, arc.math.geom.Vec3 b, arc.graphics.Color from, arc.graphics.Color to, float length, float timeScale, int pointCount) voiddrawArcLine(Planet planet, arc.math.geom.Vec3 a, arc.math.geom.Vec3 b) voiddrawArcLine(Planet planet, arc.math.geom.Vec3 a, arc.math.geom.Vec3 b, arc.graphics.Color from, arc.graphics.Color to, float length, float timeScale, int pointCount, float stroke) voiddrawBorders(Sector sector, arc.graphics.Color base, float alpha) voidvoiddrawSelection(Sector sector, float alpha) voiddrawSelection(Sector sector, arc.graphics.Color color, float stroke, float length) voidvoidrender(PlanetParams params) Render the entire planet scene to the screen.voidrenderOrbit(Planet planet, PlanetParams params) voidrenderPlanet(Planet planet, PlanetParams params) voidrenderSectors(Planet planet, PlanetParams params) voidrenderTransparent(Planet planet, PlanetParams params) voidMethods 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
-
outlineRad
public static final float outlineRad- See Also:
-
camLength
public static final float camLength- See Also:
-
outlineColor
public static final arc.graphics.Color outlineColor -
hoverColor
public static final arc.graphics.Color hoverColor -
borderColor
public static final arc.graphics.Color borderColor -
shadowColor
public static final arc.graphics.Color shadowColor -
cam
public final arc.graphics.g3d.Camera3D camCamera used for rendering. -
batch
public final arc.graphics.g3d.VertexBatch3D batchRaw vertex batch. -
projector
public final arc.graphics.g3d.PlaneBatch3D projector -
mat
public final arc.math.geom.Mat3D mat -
bloom
public final arc.graphics.g2d.Bloom bloom -
atmosphere
public final arc.graphics.Mesh atmosphere -
skybox
-
-
Constructor Details
-
PlanetRenderer
public PlanetRenderer()
-
-
Method Details
-
render
Render the entire planet scene to the screen. -
renderPlanet
-
renderTransparent
-
renderOrbit
-
renderSectors
-
drawArcLine
-
drawArc
-
drawArc
public void drawArc(Planet planet, arc.math.geom.Vec3 a, arc.math.geom.Vec3 b, arc.graphics.Color from, arc.graphics.Color to, float length) -
drawArc
public void drawArc(Planet planet, arc.math.geom.Vec3 a, arc.math.geom.Vec3 b, arc.graphics.Color from, arc.graphics.Color to, float length, float timeScale, int pointCount) -
drawArcLine
public void drawArcLine(Planet planet, arc.math.geom.Vec3 a, arc.math.geom.Vec3 b, arc.graphics.Color from, arc.graphics.Color to, float length, float timeScale, int pointCount, float stroke) -
drawBorders
-
drawPlane
-
setPlane
-
fill
-
drawSelection
-
drawSelection
-
dispose
public void dispose()- Specified by:
disposein interfacearc.util.Disposable
-