Gradient Texture
If you like my work, you can support me by subscribing
shader in example based on this
# Problem
## I. Shader Graph no Exposed Gradient
You're forced to use Texture2D-based gradients
## II. designing VFX with gradients
While designing VFX using gradients you need to tweak colors and positions, according to vfx timings/size etc, what makes you:
1. _optional_ pause vfx
2. _optional_ make screenshot
3. switch Photoshop or rearrange windows to have both (Photshop and Unity) on screen
4. change color as is in photoshop or according to screenshot, or according to unity-view
5. save file
6. active Unity window 1-2-3 times for reimport or reimport by hand (if playmode is active?)
7. check visual changes
8. repeat all
# Solution
Texture2D generated dynamicly at Editor-time, by ScriptableObject with Gradient-properties
# Summary
# Summary
- package
- Create new gradient with ProjectWindow/RMB/Create/Texture/Gradient
- Texture itself appear as GradientTexture-subasset
- realtime editing
- Blend 'horizontalTop' and 'horizontalBottom' Gradients with 'verticalLerp' Curve.
- 'horizontalTop' and '_horizontalBottom' use HDR and has alpha- 'verticalLerp' is blend-t-value
- choose any resolution you want