Home > Enterprise >  In unity custom shader materials appear pink
In unity custom shader materials appear pink

Time:07-13

I'm using Unity 2020.3.20f1. I created a 3D object (sphere) and applied a material which has a custom shader. Now the whole sphere appears pink.

I'm using URP, but I added it to an existing project. What I already tried is to upgrade the material to URP material, but it didn't fix it.

Thanks!

CodePudding user response:

The sphere appearing pink usually means that it is a problem with your shader code, which results in unity falling back to some backup shader. Unity will most likely tell you if your shader has a compilation error in the inspector when you click on the shader.

CodePudding user response:

The problem was that I didn't add URP as the fefault shader in the graphic settings. (I had to manually create a URP renderer asset tho) After adding it and upgradeing ALL materials to URP it started working.

  • Related