/unity-texture-curve

:pencil2: Example showing how to bake an AnimatedCurve into a Texture and use it in a shader.

Primary LanguageC#MIT LicenseMIT

unity-texture-curve License

Small example showing how to bake AnimatedCurve into Texture2D.

This technique can be used to animate all sort of values directly in shaders, it has the main advantage of having almost zero cost on the CPU.

screenshot

Install as Unity Package

Add git URL from the Package Maneger UI:

https://github.com/asus4/unity-texture-curve.git?path=Packages/TextureCurve#v1.1.0

License

MIT, see LICENSE for details.