Modify procedural shape [Unity Quick Tutorials #3]

preview_player
Показать описание
Simple way to efficiently modify vertices of procedurally generated mesh.
Due to short format of those tutorials, I did not talk about UVs. To make UVs work fine, you will need to either update UV array manually (inefficient way) with mesh_.uv = uvs; or via buffer. To do it with buffer, you will need to modify layout structure. Look at sources [1] on how to expand layout object and [2] to see attributes (TexCoord0 is for UVs).

Script from tutorial:

Mentioned sources:

Additional sources:

#unity #unity3d #gamedev #gamedevelopment #progamming #gameengine #csharp #proceduralgeneration #mesh
Рекомендации по теме
Комментарии
Автор

That's an interesting concept you just brought up

Gonzakoable
join shbcf.ru