Quote:
well, i think it is worth, as it is a great effect to have some more 3d-feeling. while reading the thing about a focal point , you could be right.. maybe you have to take both the focal point and the depth into account for proper calculations
Yes, both are neccesary, although it wouldn't be a focal point, but rather a focal range- which would just be a value of distance that the camera is focusing on. You could do this by rendering with a second camera and use an alternate shader to render every element with depth information, then use this texture as a mtlTex and then use the values as your offset thickness.
-Rhuarc
|