- Home /
materials turned pink, others oversaturated
I have been working on this project for a few months now with no issue, until the last build, when the first build looks fine, but the second one has bright pink where the water shader is used, and is oversaturated elsewhere. The normals also appear to have been increased (see dirt in terrain) . I did not change anything about the package, but only added another level in the build.
I have built this many times without issue at the same settings. Any ideas about troubleshooting this issue would be appreciated.
Thanks!
Please, add some more info.
Which platform are you building for? What shader is used in the pink materials? How are the rest setup? Have you updated Unity recently? What do you mean by "first build looks fine, but the second one..."? The problem starts after you do a second build? So if you restart Unity it works fine for the first build? It only happens on builds or inside the editor too?
these were built for desktop PC. The shader I used was a pretty simple water shader that has worked correctly for some time now through several builds. I have not updated recently and am running 5.0.2. I did two builds, in one I have only the scene shown in the image attached, in the other I included a second scene, and that is the one where the trouble began, however I have built these two scenes together several times in the past without problems. Now the assets are all like this (pink or saturated ) when I open either scene (or any of the local backups) it is inside the editor as well. I can drop back to other backups, so I am not totally hosed, but I would like to understand what happened.
"Pink" (magenta) is the colour Unity uses when there's a problem with the material assigned to an object. It could be a missing texture, a shader compilation error.... there should be more information in the log.
I found the error with the water shader and replaced it. Any idea why the other textures changed? it seems like the light ones lightened, the dark ones darkened, all are over saturated and the normals increased. It is almost as if they were "multiplied" or overlaid. Thanks
Your answer