Jump to content
  • Advertisement
Sign in to follow this  

OpenGL Soft shadows using layered attenuation map

This topic is 5456 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello guys, I'd like to code that technique for a project: http://graphics.stanford.edu/papers/shadows/ the first one called Layered attenuation map. First, I'd like to know has anyone seen that technique implemented somewhere, an example, a bit of code about it? My first question is about the second part of the algorithm. Once you have built your attenuation map with renders from the light point of view, you switch back to camera point of view (a bit like shadowmapping) and then you render the whole scene with texture and lightning. After that, for each pixel of the image, you check if that pixel is in your attenuation map and if so, modulate its color by a factor. I'd like to know how to get a pixel information from a rendered view and then change its color and write it back to produce a final render or image and so on for each pixel of the image? In OpenGL of course. Thank you! Jeff

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!