Package com.lightning.northstar.planet
Class PlanetRenderer
java.lang.Object
com.lightning.northstar.planet.PlanetRenderer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.joml.QuaterniondgetViewRotation(double cameraX, double cameraZ, PlanetProperties planet, PlanetDimension dimension) Calculate the view orientation for a specific dimensionstatic voidrender(net.minecraft.client.multiplayer.ClientLevel level, com.mojang.blaze3d.vertex.PoseStack pose, net.minecraft.client.Camera camera, float starBrightness, float atmosphereBlend) static voidrender(net.minecraft.client.multiplayer.ClientLevel level, com.mojang.blaze3d.vertex.PoseStack pose, net.minecraft.client.Camera camera, float starBrightness, float atmosphereBlend, boolean excludeSunAndMoon)
-
Constructor Details
-
PlanetRenderer
public PlanetRenderer()
-
-
Method Details
-
getViewRotation
public static org.joml.Quaterniond getViewRotation(double cameraX, double cameraZ, PlanetProperties planet, PlanetDimension dimension) Calculate the view orientation for a specific dimension- Parameters:
cameraX- the camera's x position in the dimensioncameraZ- the camera's z position in the dimensionplanet- the planet the viewer is ondimension- the dimension the viewer is in
-
render
public static void render(net.minecraft.client.multiplayer.ClientLevel level, com.mojang.blaze3d.vertex.PoseStack pose, net.minecraft.client.Camera camera, float starBrightness, float atmosphereBlend) -
render
public static void render(net.minecraft.client.multiplayer.ClientLevel level, com.mojang.blaze3d.vertex.PoseStack pose, net.minecraft.client.Camera camera, float starBrightness, float atmosphereBlend, boolean excludeSunAndMoon)
-