Class PlanetRenderer

java.lang.Object
com.lightning.northstar.planet.PlanetRenderer

public class PlanetRenderer extends Object
  • 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 dimension
      cameraZ - the camera's z position in the dimension
      planet - the planet the viewer is on
      dimension - 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)