Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!

We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Posted 22 March 2013 - 01:36 AM

Sorry, I misread your code


Posted 22 March 2013 - 01:28 AM



Not sure if this is actually the problem but

depthStoredInShadowMap = sum / 16.0;

should be

depthStoredInShadowMap = sum / 9.0;

since you are using a 3x3 kernel  (there are 9 samples, not 16)