Question by
tuxzz · Oct 12, 2015 at 01:15 PM ·
shaderbugshader programmingshaderlabshader writing
_WorldSpacePosLight0 suddenly changes when change camera position or direction
I'm writting a cel shader and all seems fine. But I notcied that sometimes the shadow will be inversed.
I found that the _WorldSpacePosLight0 variable changes suddenly when I change camera position or direction. But I've never change the position or direction of the light.
Who can help me?
Here's a short video to description the problem.
Shader Code: Cel.shader Cel.cginc
Unity: 5.2.1f1 Personal Running on Windows 10 OpenGL 4.5 Core Profile
Sorry for my bad English...
Comment