Unity Gradient Texture generator. Texture2D-Gradient generated dynamicly Editor-time, by ScriptableObject with Gradient-properties
usage example video ( Youtube )
shader in example based on this, can be downloaded here
What's new:
- drag and drop as simple texture (Unity 2021.2 minimum)
- Encode to PNG
- stackable preview
You can't expose gradient to material inspector
You forced to use Texture2D-based gradients
While designing VFX using gradients you need to tweak colors and positions, according to vfx timings/size etc, what makes you:
- optional pause vfx
- optional make screenshot
- switch Photoshop or rearrange windows to have both (Photoshop and Unity) visible on screen together
- tweak Gradient as is in Photoshop or according to screenshot, or according to Unity-view
- save file
- switch to Unity window 1-2-3 times to reimport Texture or reimport by hand (if Playmode is active?)
- check visual changes
- repeat all
Texture2D-Gradient generated dynamicly Editor-time, by ScriptableObject with Gradient-properties
I. Exposed in shader graph as Texture2D
II. faster iteration with no need to switch to Photoshop, rearrange windows, save file, reimport
- release 1.0.6 is tested with Unity3d 2018-2022
- RGBA
- HDR
- UPM package
- release 1.0.7 Export to PNG
- create GradientTexture with ProjectWindow/RMB/Create/Texture/Gradient
- Texture2D itself appear as GradientTexture-Subasset
- realtime editing
- Blend 'horizontalTop' and 'horizontalBottom' Gradients with 'verticalLerp' Curve.
- choose any resolution you want
- drag and drop as simple texture
- Encode to PNG
- stackable preview