Pocket Putt Islands
- ..
- .metadata68 B
- README.md616 B
- module.wgsl8.2 KB
README.md
animCommon
The WGSL every animatedMaterials shader includes (#include "~.shaders.animCommon"): integer hashes, periodic value and gradient noise and fbm (periodic over one repeat, so a field tiles with no seam), a periodic Voronoi with true border distance, the object-metre mapping (am_object_metres in a vertex_clip, am_object_coords in the fragment: surface coordinates in metres along the object's own axes, so a stretched box keeps real size and a belt's travel lines up with its collider's own frame), and a tangent frame from screen derivatives for normals perturbed in a shader's own coordinates.