grammatics

This commit is contained in:
Dario Zubovic
2016-09-16 19:04:28 +02:00
committed by GitHub
parent 26d6569602
commit d606c1657e

View File

@@ -1,13 +1,13 @@
# Unity 3D metaballs
Unity 3D implementation of marching cubes algorithm for rendering metaballs. It can be used for gameplay purposes (gels in Valve's Portal 2), or as a decoration, as shown in the image below.
Unity 3D implementation of marching cubes algorithm for rendering metaballs. Metaballs can be used for gameplay purposes (gels in Valve's Portal 2), or as a decoration, as shown in the image below. They can also be used to visualise various fields in physics (for example, each metaball can represent single point charge and electrostatic potetial due to point charge equation used as a falloff function).
![](https://github.com/dario-zubovic/metaballs/raw/master/gif.gif)
Metaball functions are envaluated on GPU or CPU, but GPU mode performs about 10x faster. Currently there is only 1 falloff functions available:
Metaball functions are envaluated on either GPU or CPU. GPU mode performs about 10x faster than CPU. Currently there is only one falloff functions available:
```f(d) = r^2 / d^2```
Where *r* is radius of the metaball, and *d* is distance from metaball's center to current point. Additional functions can be quickly added as a new compute shader based on the existing one.
Where *r* is radius of the metaball, and *d* is distance from metaball's center to current point. Additional functions can be quickly added as a new compute shader.
## TODO list:
* add more falloff functions