|
How come when I apply Toony - BasicOutline to a sphere the outline doesn't work when in an Orthographic? Anyone know how to get it to work in an Orthographic? Thanks.
(comments are locked)
|
|
It should work in both the Orthographic and Perspective cameras if you change the vertex program to something like:
The problem with the old version is that the position was being adjusted in camera-space and The projected normals don't behave the same in orthographic projection as they do in perspective projection. The simple workaround used here is to add the outline in world-space and then project to camera space. Where do I put the code?
Oct 15 '10 at 11:18 PM
MikezNesh
This is a shader vertex program - The Toony-BasicOutline shader to be precise. There's only one vertex program in the entire shader. Replace the vertex program at lines 26~35 with this one and it should do the trick.
Oct 18 '10 at 02:07 PM
skovacs1
(comments are locked)
|
