#Overlay Canvas raw Image center to edge fade shader
1 messages ยท Page 1 of 1 (latest)
this is what i wrote but it doesnt seem to work for UI?
This is what the sprite looks like, but i want to fade it from center of sprite, left and right
Reminder : if you want to use the sprite renderer assigned sprite in your shader, the texture reference name must be "_MainTex"
Ad for the fading, you probably need to use the opacity input.
For a horizontal center fade effect, do
1 - 2 * abs( uv.x - 0.5 )
You'll probably also have to multiply it with the sprite alpha
is that HLSL shader writing? I don't know how to do that ๐ฆ
i did make the ref correct before hand though ๐
Overlayer UI raw Image center to edge fade shader
Overlay Canvas raw Image center to edge fade shader
It's hlsl, but it's simple maths, you can convert this into node logic