andydbc / unity-texture-curve

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License

MIT, see LICENSE for details.

About

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

License:MIT License


Languages

Language:C# 55.3%Language:HLSL 28.9%Language:ShaderLab 15.8%