Shadow mapping examples

Discussion of proposed new features.

Shadow mapping examples

PostPosted by namic » 16 May 2016, 23:25

Are there any shadow mapping examples for Urho? I'm looking for PCF, hard, VSM?
User avatar
namic
Some active
Some active
 
Posts: 64
Joined: 31 May 2015, 23:12

Re: Shadow mapping examples

PostPosted by rasteron » 17 May 2016, 02:45

If I'm not mistaken, NSW already has PCF shadows as an example. Check the combined shaders.xml file:

https://github.com/urho3d/Urho3D/blob/m ... rs.xml#L11
User avatar
rasteron
Have many posts
Have many posts
 
Posts: 437
Joined: 07 Mar 2014, 07:46
Location: web

Re: Shadow mapping examples

PostPosted by 1vanK » 17 May 2016, 03:14

Any exaple in Urho uses PCF shadows. It is default option:

Code: Select all
Renderer::Renderer(Context* context) :
    ...
    shadowMapFilterInstance_(0),
    shadowMapFilter_(0),
    ....
    shadowMapSize_(1024),
    shadowQuality_(SHADOWQUALITY_PCF_16BIT),


u can shange it through Renderer subsystem:

Code: Select all
GetSubsystem<Renderer>()->SetShadowMapSize(2048);
GetSubsystem<Renderer>()->SetShadowQuality();
and other (see Renderer.h)


Also some settings of shadows there are in Light component
User avatar
1vanK
Moderator
Moderator
 
Posts: 430
Joined: 26 Jun 2015, 19:16
Location: Internet


Return to Feature Request

Who is online

Users browsing this forum: No registered users and 0 guests