https://github.com/asus4/unity-texture-curve
:pencil2: Example showing how to bake an AnimatedCurve into a Texture and use it in a shader.
https://github.com/asus4/unity-texture-curve
Last synced: 24 days ago
JSON representation
:pencil2: Example showing how to bake an AnimatedCurve into a Texture and use it in a shader.
- Host: GitHub
- URL: https://github.com/asus4/unity-texture-curve
- Owner: asus4
- License: mit
- Fork: true (andydbc/unity-texture-curve)
- Created: 2022-04-14T08:42:38.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-22T10:10:16.000Z (about 3 years ago)
- Last Synced: 2024-06-06T09:35:00.792Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 45.6 MB
- Stars: 15
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- anything_about_game - unity-texture-curve
README
unity-texture-curve [](http://mit-license.org)
==========
Small example showing how to bake [AnimatedCurve](https://docs.unity3d.com/ScriptReference/AnimationCurve.html) into [Texture2D](https://docs.unity3d.com/ScriptReference/Texture2D.html).
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.

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](LICENSE) for details.