[SOLVED] Calculating view space point light position

Started by
9 comments, last by Brejlounek 11 years, 3 months ago

Oh, by the way, this screen space point light is a bad idea, the xy-coordinates should be from much larger range in larger distances. Instead, I calculate world-space position from depth map with distance from camera using formula


pos=pEye+IN.cpos*depth

where IN.cpos is interpolated position of the screen corner and pEye is eye position.

This topic is closed to new replies.

Advertisement