Couldn't think of a topic name
In OpenGL:
say i've two cameras in my scene (A & B).
I want to draw my scene from A's point of view, But depth calculations have to be from B's point of view.
and I want to do this in real time.
thanks in advance for all the suggestions.
I hope my question isn't silly.
I wanna use this to do shadows.
The best I can think of is using a point light as B, and use the attenuation to determine the distance to B (it would be equal to the inverse of the diffuse color from that light). You can then use this distance for computations.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement