SebLague / Procedural-Planets

Home Page:https://www.youtube.com/watch?v=QN39W020LqU&index=2&t=0s&list=PLFt_AvWsXl0cONs3T0By4puYy6GM22ko8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(Question) Mesh Terrain Faces Dynamic with Planet Resolution

valkyrienyanko opened this issue · comments

commented

The planet is generated with 6 terrain faces but lets say we wanted to generate a massive sphere and only generate parts of the planet at a time. In order to do this we would need more then 6 meshes, this is where it would be nice to make the terrain faces (meshes) dynamic with the planets resolution.

When I looked at the Planet.cs code, I saw that each terrain face used its own vector.

Vector3[] directions = { Vector3.up, Vector3.down, Vector3.left, Vector3.right, Vector3.forward, Vector3.back };

How could we create more vector directions in this array to account for more terrain faces?