Quoting Tobias.
Quote:
1. Setting shadow_stencil, before loading your level.

It seems, in that sample, shadow_stencil is set ~3 frames after level_load.

Maybe "shadow_stencil = n;" should be placed as the first line in function "main()"?

Set sun parameters in WED?