Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!






vortxGE 2.0 : Self shadow

Posted by Lee A. Stripp, 11 February 2012 · 219 views

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.


Attached Image

EDIT :

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

Attached Image

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 );
          





September 2015 »

S M T W T F S
  1 2 345
6789101112
13141516171819
20212223242526
27282930   

Recent Comments

PARTNERS