Jump to content
  • Advertisement
  • entries
  • comments
  • views

vortxGE 2.0 : Self shadow

Sign in to follow this  


Starting to look a little better, I now give full access to settings for shadows to the User. via ShadowMap size and pixel sample x,y values.



And here's another update. Shadow is now a little softer and I added more settings for the User.


Code showing a light setup for the shadowmap pass.

lsLight *light = (lsLight*)demo_scene->getFoundNode();

// set our clip area
float vr = pass_shadowmap->getFBO()->getWidth() / pass_shadowmap->getFBO()->getHeight();
light->Set_Perspective( 45.0, vr, 1.0, 10.0 );
light->setShadow_bias( 0.005 );
// set sample mult
light->setPixel_x( 0.002 );
light->setPixel_y( 0.002 );
// Set light
pass_shadowmap->setLight( light );

Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!