GridVids
Sign in with YouTube

[Unity] Procedural Planets (E06: simple biomes)

Sebastian Lague Oct 23, 2018 02:12
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Don't Miss
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Mark watched
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Hide
Open in popup Open on YouTube
Share video

Share video

Copy the GridVids link or iframe code.

Video link
Iframe code
Iframe content

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
Education
#shader #procedural generation #procgen #planet #terrain #unity #unity3d #c# #programming #shadergraph