Same scene on Windows, AMD ThreadRipper 1950X 3.
Implementation is very similar to theįrame times on a 300 thousand triangle mesh, on 2019 MacBookPro note that these are full frame times including rendering:Ī more complex example, where for some hypothetical tooling there's a need to process geometry of many input Meshes, and produceĪn output Mesh. Based onĪssets/NoiseBall is the sample scene and code. A modernized, refined Editor UI We’ve given the Editor a new look and feel by updating icons, fonts, and user feedback. A new Quick Search function helps you find anything in Unity, and UI Builder is now in a Preview package. The mesh positions and normals are updatedĮvery frame, using either CPU code or a GPU compute shader. The Unity Editor UI in the 2019.3 release features new icons, fonts, and visual feedback systems. Same scene on Windows, AMD ThreadRipper 1950X 3.4GHz w/ 16 threads, GeForce GTX 1080Ti, DX11:Ī mesh with procedural simplex noise driven mesh.
Shader to modify the Mesh vertex buffer, for comparison.įrame times on 400x400 water mesh, with 10 wave source objects, on 2019 MacBookPro (Core i9 2.4GHz, Radeon Pro 5500M) note that these are full frame times including rendering: The sample also implements a similar computation using a GPU compute ScriptableObject Menu - Create ScriptableObjects from the Unity Editor. BitField Attribute - Enable bit field masking from the Unity Editor. Mulligan Renamer - bulk renaming tool for game objects and assets. Using C# Job System and Burst to compute all vertex positions in parallel brings Simple Editor Shortcuts Tools Collection - small collection of simple tools to help in scene editing workflows. Only depends on positions of the "wave source" objects. Each vertex of the resulting mesh is completely independent of others, and Procedural Water/Wave MeshĪ simple example where a dense "water" surface mesh is updated every frame, based on positions on "wave source" objects.Īssets/ProceduralWaterMesh is the sample scene and code.
When on Unity 2021.2 or later version, the examples also show how to use GPU Compute Shaders toĪccess and modify Mesh vertex buffers. Required Unity version is 2020.1 or later.
This repository contains several small examples of that.
Unity 2020.1 adds MeshData APIs for C# Jobs/Burst compatible way of reading & writing Mesh data see overview document. Unity 2020.1 Mesh API improvements examples