In the video you can see the light circle around the player. As the player moves into the shadow the shadows begin to flicker on and off. Also, the light is no longer being drawn. Each torch has a light. You can see it works for some, but the ones in the shadow seem to have a problem. Its like the shadow is overwriting the light calculation. I am not using any custom shaders.
Any tips on the shadow flickering? And why the shadows are preventing the lights from being drawn?
function InitShadows()
SetShadowMappingMode(2)
SetShadowMapSize(1024,1024)
SetShadowBias(.001)
SetShadowSmoothing(2)
Setshadowrange(160)
SetObjectCastShadow(2,1)
SetObjectReceiveShadow(2,1)
SetObjectReceiveShadow(1,1)
SetObjectCastShadow(1,0)
SetObjectReceiveShadow(3,1)
SetObjectCastShadow(3,1)
endfunction