Hi, this problem happened in Unity 4.6
I am using built-in Specular shader, and changing the _Shininess parameter with script during the game.
This creates a nice light-up and fade out effect like the picture shows.
![alt text][1]
[1]: /storage/temp/45547-combine-stagelight.jpg
However, after building the whole game, the effect is gone, the _Shininess seems to stop at a fixed value.
I got another custom shader that is using similar trick with this, and it broke too.
I read some similar problems of custom shader not working in build, but specular is provided by Unity.
Has someone encountered this before?
↧