Skip to content

pavelkouril/unity-marching-cubes-gpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marching Cubes GPU implementation for Unity

Developed with Unity 5.6, might work on older versions as well. No guarantee tho. Requires DX11 hardware. Not honestly sure about mobile phones, but my guess is it won't work. Feel free to correct me.

The generating of density field is done on CPU, but for demonstration purposes it should be enough. You will probably want to modify the MarchingCubes.DensityTexture from Texture3D to RenderTexture in a real application.

ProceduralGeometry shader used for drawing the MC is barebone and contains only diffuse lightning; replace it with a custom one, modified to your liking. :)

Any pull requests and issues are welcome.

Credits

Implementing this would not be possible without:

About

GPU ComputeShader implementation of Marching Cubes algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published