#Noob Shader Question?
1 messages · Page 1 of 1 (latest)
the simplest thing might be to try to combine them.
like maybe you can add the shaders to separate materials and then assign both materials to a sprite renderer, so it is drawn twice, but the later material will likely just overwrite the result of the first one
Combining them seems like my best bet right now. I never mess with shaders so I don’t know what are the best practices on executing shaders
it's a big topic for sure. with shadergraph it's the same as writing regular shaders just that you do it with nodes and have nodes that already include a lot o logic you'd have to do yourself otherwise
as for assigning materials to renderers.
a mesh consists of 1 more submeshes. the materials you see on the renderer component, each material will render the submesh for the same index. so if you have a renderer with only 1 submesh, it would just have 1 material assigned.
okay what happens when you assign more materials than there are submeshes? Unity will use the excess materials to render the last submesh multiple times
I never tried to assign more than 1 material to a sprite renderer but I assume it would be the same
But cant a spriterenderer only take one material?