Initial support for arbitrary types of content in tech tree

This commit is contained in:
Anuken
2020-05-18 09:40:38 -04:00
parent f290f688d0
commit 3784251108
5 changed files with 35 additions and 26 deletions

View File

@@ -411,7 +411,7 @@ public class PlanetDialog extends FloatingDialog{
Tmp.v31.set(selected.tile.v).rotate(Vec3.Y, -planet.getRotation()).scl(-1f).nor();
float dot = cam.direction.dot(Tmp.v31);
stable.getColor().a = Math.max(dot, 0f)*2f;
if(stable.getColor().a <= 0.001f){
if(dot*2f <= -0.1f){
stable.remove();
selected = null;
}