These are the settngs i use;
SetSunDirection(0.3, -1, -0.3)
SetAmbientColor(0x80, 0x80, 0x80) // Bright ambient = soft shadows
SetSunColor(0x60, 0x60, 0x60)
SetShadowMappingMode( 3 ) // Shadows
SetShadowSmoothing( 1 ) // Random sampling
SetShadowMapSize( 1024, 1024 ) // Shadow map size
SetShadowRange( 1000) // Use a short range for better shadows
SetShadowBias( 0.0012 ) // Offset shadows slightly to avoid shadow artifacts
I have found Setting ShadowRange() smaller and SetShadowMapSize() larger have the greatest effect