Hi!
I'm pretty new in shader programming and tried to program a car shader. I got 2 shaders working, but I couldn't get them together into one shader..
Is it possible to combine them through UsePass?
Thanks
Hi!
I'm pretty new in shader programming and tried to program a car shader. I got 2 shaders working, but I couldn't get them together into one shader..
Is it possible to combine them through UsePass?
Thanks
If they are surface shaders, probably not. Surface shaders write their own passes, but if you checked the compiled shader and grabbed one of the passes it built out (assuming that they are named), that may work, but I haven't tried this and wouldn't recommend it.
Otherwise, for the most part yes. You'd need to have many of the same properties, etc., but it should work, assuming it is the passes that you intend to use as opposed to some other non-pass part of the shader like general Subshader settings.