#Trying to create a UI shadergraph and the vertex stuff is greyed out

1 messages · Page 1 of 1 (latest)

near lynx
#

I'm trying to make a UI shader which does like a low fps noise sorta thing, but it looks like the vertex part is disabled? is there something im missing? also im quite new to UI shadergraph so i feel like this implementation is wrong anyway 😅

near lynx
#

its also just not showing anything on my image

tacit star
near lynx
#

if i set the material type to UI it specifically says that position is nota llowed

#

but no such thing for the canvas material

#

its just grayed out and doesnt say why

tacit star
#

Aaah, well that makes sense. Canvas and full screen don't really "have" vertices. Or rather their vertices are basically that of the screen corners. You can't modify them.

near lynx
#

i guess i could do this in a non UI context lmao but

#

i wanted to do this in my UI

tropic idol
tacit star
#

There might be a proper way to do this with ui shader.

near lynx
near lynx
tropic idol
#

You can have a look a shadergraph UI samples for inspiration.

near lynx
tropic idol
#

Well, you can't modify the position of the vertices in the fragment stage.
You take the uvs, mess with them in maths, and make it a greyscale alpha mask.

near lynx
tropic idol
#

Oh boy ...
Maybe start by looking at the UI samples (in the samples tab when looking at the shadergraph package in package manager).
Depending on the shape that you want, the logic involved might change a lot

#

Maybe at the end it might be simpler to work with a texture ?

near lynx
#

i'll give it a shot

#

thanks!

obtuse prism
tacit star
obtuse prism
tacit star
#

Not sure what the difference is, but there's both "ui" and "canvas".