2018-10-22
[public] 83.1K views, 1.98K likes, 7.00 dislikes audio only
In this episode we add simple colour biomes to the planet.
Get the project files for this episode:
http://github.com/SebLague/Procedural-Planets
Note:
Two issues have been pointed out which I'd like to address: (will add these fixes at end of next video)
1) changing resolution causes uv out of bounds error. This can be fixed by checking mesh.uv.Length == uv.Length before assigning the uvs in ConstructMesh method.
2) biome colours appearing in wrong places when zoomed out (on certain devices). To fix this, mipmaps need to be disabled on the planet texture. In the ColourGenerator, replace with:
texture = new Texture2D(textureResolution, settings.biomeColourSettings.biomes.Length, TextureFormat.RGBA32, false);
Support the creation of more tutorials and get early access to new videos: https://www.patreon.com/SebastianLague