Class PlanetRenderer

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

public class PlanetRenderer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.joml.Quaterniond
    getViewRotation(double cameraX, double cameraZ, PlanetProperties planet, PlanetDimension dimension)
    Calculate the view orientation for a specific dimension
    static void
    render(net.minecraft.client.multiplayer.ClientLevel level, com.mojang.blaze3d.vertex.PoseStack pose, net.minecraft.client.Camera camera, float starBrightness, float atmosphereBlend)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
    • 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)