0

Driving opacity clip with NdotL

Ocean Quigley 9 лет назад обновлен 9 лет назад 1
I think this is a bug - Try taking NdotL lighting, feeding it through a component mask to get a single channel, then running that channel into Opacity Clip. It compiles fine, but the Unity throws a shader error and the model turns pink.
"Shader error in <shader> :"lightDirection" :redefinition at line 60 (on opengl)
Basically, anytime you use lightDirection in a vertex shader, lightDirection is undefined, and needs to be put in manually.

Сервис поддержки клиентов работает на платформе UserEcho