Archive 17/01/2023.

Shadow mapping examples

namic

Are there any shadow mapping examples for Urho? I’m looking for PCF, hard, VSM?

rasteron

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

github.com/urho3d/Urho3D/blob/m … rs.xml#L11

1vanK

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

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

u can shange it through Renderer subsystem:

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

Also some settings of shadows there are in Light component

hunkalloc

Shadows tend to be very low quality still. Any other tricks to increase resolution?