#Overlay Canvas raw Image center to edge fade shader

1 messages ยท Page 1 of 1 (latest)

scarlet spoke
#

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

vapid coyote
#

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

scarlet spoke
#

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

vapid coyote
#

It's hlsl, but it's simple maths, you can convert this into node logic