An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

unity-texture-curve [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg?style=flat)](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.

![screenshot](Screenshots/screen0.gif)

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.