Unofficial Hacker News client - receive Push Notifications on replies.

Cloth Simulation with XBPD (opens external site)

67 points by ricardobeat 3 days ago | ricar.do | 20 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (1)

  1. If it's shadowmap based lighting you can trace through it.

    Imagine a ray from the camera to the background pixel, sample the shadowmap along the way if the sample points along the camera ray lies within the shadowmap and add light if the shadowmap depth is further away (simplified, depending on number of lights,etc there's a number of possible optimizations but that should be googleable).