Jump to content
  • Advertisement
Sign in to follow this  
Caste

Soft Shadows using GLSL

This topic is 4444 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

Is there any way to create soft shadows by just rendering the objects (which are casting the shadows) in several passes to achieve a soft shadow? Or do I have to do the volume/stencil shadow stuff and then blur the shadows? I'd prefer a way which doesn't require transforming the vertices at the edges away from the light source to create volume shadows. Probably storing the data in the fragment buffer ('cause one can't access the stencil buffer from GLSL) and using this data whithin the next pass or passes? Any hints are welcome!

Share this post


Link to post
Share on other sites
Advertisement
You can get fake soft shadow using shadow maps (google for it, there are simply too many methods and sources). If you want something more you could try this.
On the net there is a ton of material about SM: this could be a good start.

Share this post


Link to post
Share on other sites
You can use SM and the in the fragment shader sample the neighboring pixels and make your soft shadows that way. This way you can sample as many pixels as you want.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!