Sorry for the vague title, but I’m not sure the best way to describe this.
I have a material that was using a ShaderGraph shader I made. I then decided I’d switch it over to use the built-in HDRP Lit shader. Upon switching to it, the material doesn’t render. When assigned to a plain old cube, the cube doesn’t render. No fucsia box, just nothing at all.
I created a new material and assigned all the same values as I did to the invisible material, and it renders fine. In the inspector, these two materials are identical: all fields have the same values. However, if I look at the text contents of the two materials, they’re dramatically different:
The “invisible” shader is on the right. It has a lot more stuff, most of which are properties of my old shader.
Anyway, it’s not critical that I “fix” this material. Mostly I’d just like to understand what’s going on. It seems that the extra “stuff” in the “invisible” shader is causing the built-in HDRP Lit shader not to render correctly. Does anyone know what would cause this? I attached the two materials in case anyone’s curious.
Can extra “junk” in the material, which isn’t used by that shader, cause it to rendering differently? Is there a way to reset a shader to throw away this “junk”?
5083373–500255–VelocityDampenerField.zip (4.32 KB)