summaryrefslogtreecommitdiffstats
path: root/Shaders/displacement/displacement_lighting.cginc
Commit message (Collapse)AuthorAge
* Fix normal calculation in displacement shaderyum2023-04-14
| | | | | | | | Recompute normals after generating the deformed mesh. Unfortunately, significant anti-aliasing is required to get the generated normals to look smooth in motion. * Enable backface culling.
* Displacement shader displaces along normalyum2023-04-13
| | | | | | | | It used to just displace along world-space Z axis. Now it can be used with any convex mesh, like planes or spheres. Concave meshes can work with small displacements. * Add mask to be used with UV-spheres.
* Add displacement shaderyum2023-04-13
See README.md.