Skip to content

humanapp/bumpy-metaballs

 
 

Repository files navigation

Bumpy metaballs

Isosurface created with Marching Cubes, and bump added with normal mapping.

The metaballs don't have generated UV coordinates, and tangents can't be calculated with the usual method because it relies on texture coordinates.

Following the triplanar mapping explained in this GPU Gems 3 article is possible to generate the Tangent Space Basis in the fragment shader.

Shading is the same MatCap as Spherical Environment Mapping.

Code by Jaume Sánchez @thespite using three.js.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.4%
  • HTML 2.1%
  • CSS 0.5%