https://github.com/spite/bumpy-metaballs
https://github.com/spite/bumpy-metaballs
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/spite/bumpy-metaballs
- Owner: spite
- License: mit
- Created: 2022-03-28T23:16:13.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-28T23:18:20.000Z (over 4 years ago)
- Last Synced: 2025-03-31T21:31:29.816Z (about 1 year ago)
- Language: JavaScript
- Size: 1.39 MB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.