Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
artnas authored Apr 14, 2023
1 parent 0c434f1 commit f648321
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ https://user-images.githubusercontent.com/14143603/231909731-d0047d10-7ccd-440d-

## How it works

- generate voxels compute is run, voxel data (0/1) is generated using 3d noise
- feedback compute is run, this iterates all voxels and calculates the count of vertices and indices which will be required for the mesh
- voxelizer compute is run, this iterates all voxels and puts vertex and index data into the buffers
- generate voxels compute -> voxel data (0/1) is generated using 3d noise
- feedback compute -> iterates all voxels and calculates the count of vertices and indices which will be required for the mesh
- voxelizer compute -> iterates all voxels and writes vertex and index data into the buffers
- the mesh is drawn with Graphics.DrawProceduralIndirect using data from index and vertex buffers

The mesh is generated on the GPU and is never read back to the CPU to create a Mesh object, that would be very slow by comparison (5 FPS).
Expand Down

0 comments on commit f648321

Please sign in to comment.