Clay
A clay shader made in Unity 3D's ShaderGraph.
Install / Use
/learn @joebinns/ClayREADME
Clay
A procedural clay shader made in Unity 3D's ShaderGraph.
<img alt="Clay demonstration gif" src="https://joebinns.com/documents/gifs/purveyor_of_stars.gif" />How does it work?
- Textured fingerprints leave dents in the normal and add smoothness to mock natural oils from skin.
- Voronoi noise is used to flatten normals, creating a handcrafted look.
- Perlin noise is modified to form valleys, dimming ambient occlusion and subtracting normals to create a folded appearance. (Doesn't look very good as yet).
- Tileable Perlin noise is used to displace mesh vertices at normals to the surface, providing a seamless bumpy look.
- Small heptagonal impurities are randomly generated on the surface. (Doesn't look very good as yet, and performs very poorly).
Installation
Open the project in Unity. Open the Purveyor of Stars scene located at clay/Assets/Scenes/.
Warning
I created this procedural clay shader as an exercise in Unity 3D's ShaderGraph.
Shaders are run every frame, and since this is an unbaked shader, it generates and then discards various noise textures each frame.
I would therefore strongly advise against using this shader in it's current state in commercial usage.
Instead, one could re-create the shader in Blender and bake it into materials and animations.
You would then benefit from peak performance, with results that you can be just as happy with!
Contributing
- Fork the repository.
- Create a branch for your feature:
git checkout -b my-shiny-feature. - Commit your changes:
git commit -am 'Added my super shiny feature'. - Push to the branch:
git push origin my-shiny-feature. - Submit a pull request.
All contributions big and small are appreciated and encouraged!
Credits
Fingerprints texture
Courtesy of cgbookcase.com.
All else
Is my own.
License (MIT License)
See this page for more information.
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.4kCommit, push, and open a PR
