stencil blur does not work - SOLVED

Posted By: NicolaB

stencil blur does not work - SOLVED - 05/30/20 11:14

Hello,
After adding stencil_blur(1); the shaodws disapear completely.

#include <mtlView.c>

in function main i added those lines:

shadow_stencil = 2;
stencil_blur(1); // blur the shadows using the built-in Poisson shader

and in the Players Action i set the shadow.

As soon as i delete stencil_blur(1W; i have the shadow back, but not blured as i would like to have.
Whats wrong?
Posted By: NicolaB

Re: stencil blur does not work - 05/30/20 12:13

PROBLEM SOLVED i have to set everything in the right order:
….
video_switch(12,0,1);
d3d_autotransparency = 1;
camera.clip_near = 10; // 2 stop camera clipping to world at close range
doppler_factor = 2;
//NOW SHADOW VARS
shadow_stencil = 2;
shadow_lod = 1; // use the second LOD stage for stencil shadows
stencil_blur(1); // activate blurred shadows

level_load…..
© 2024 lite-C Forums