#Global dissolve Shader

1 messages · Page 1 of 1 (latest)

rich valley
#

Hello ! I'm new to Shaders so I'm trying to learn.
Here's my situation :
I have some prefabs with their own materials/shader. Is it possible to make a shader to make them dissolve on their left-side (Kind of like a thanos snap) ?
Since I want to keep the visual of my prefab I'm guessing I should use a Render feature, but when I do, the previous material is still visible below :/
I link my very simple dissolve left Shader.
I'd also like to know how to not provide colors in my Shaders so my object doesn't become gray :/
Thank you !
PS: I'm using URP

deep elbow
#

If you're dissolving a custom shader, then you'd make the dissolve on top of that instead using the relevant properties

#

Render objects renders objects on top of what's there, so if you want to swap the object to dissolve using the override, I suppose you need to swap its rendering layer to one that's not rendered to avoid rendering it twice

#

Or just implement the dissolve directly into the shaders you're using to avoid messing with renderer features

rich valley
#

So there's no way to make all my objects dissolve without overriding every material/shader ?

Let's say I take a house prefab, it means I have every material to be transparent instead of opaque and add my dissolve logic in its shaders ?

deep elbow
#

An opaque dissolve using alpha clipping is one option, but swapping to a material instance or changing keywords at runtime from a script could be better