Reflective planet water

This commit is contained in:
Anuken
2020-04-02 12:32:55 -04:00
parent 19239a6890
commit a26cd46a7e
7 changed files with 22 additions and 5 deletions

View File

@@ -177,6 +177,9 @@ public class PlanetDialog extends FloatingDialog{
cam.lookAt(planet.position);
cam.update();
//TODO hacky
Shaders.planet.camDir.set(cam.direction).rotate(Vec3.Y, planet.getRotation());
projector.proj(cam.combined());
batch.proj(cam.combined());