- Home /
Toon Shader Outline Zoom Problem
I'm fairly new to unity and I'm working on a project using the toon shader I have the same problem thats in this post http://answers.unity3d.com/questions/256370/toonshader-offset-and-camera-fov.html#answer-285131
There seems to be solutions here to this problem but having little or no scripting knowledge I have no idea how/where to implement any of these.
Can anybody point out where any of these scripts should be place?
Many thanks
Answer by wr_uk · Jul 17, 2012 at 10:07 AM
I'm new to unity and I'm working on a project using the toon shader I have a Toon outline Zoom problem (See Attched) The outline seem to stay the same thickness regardless of if the camera is close or far. There seems to be solutions here to this problem but having little or no scripting knowledge I have no idea how/where to implement the script. One of the guys with a similar problem on another Unity Answers is saying 'you have to paste that code in the shader code.' the Shader.SetGlobalFloat("_CAMERA_FOV", Camera.fov); code you put where you're changing the camera.fov When I do this it breaks the shader. Can anybody point out where any of these scripts should be place? Many thanks