Syntax
dbSetShadowShadingOn(ObjectID [, MeshNumber, ShadowRange, UseShader])
Description
This command will set the specified object to cast a hardware shadow. This command requires hardware specifically designed for this feature, as it's a very intensive calculation. Use this command sparingly for best performance. Shader based shadows cannot be used in combination with animated bone models. You must use CPU based shadow rendering for this. To change the offset to reduce/increase self-shadowing artifact described above, simply copy the stencilshadow.fx from the effects folder of the compiler directory, and paste it into your project folder. Open it up and you can change the shader near the bottom to a value other than 0.1 to choose your own value.
See Also
dbSetAlphaMappingOn, dbSetBlendMappingOn, dbSetBumpMappingOn, dbSetCartoonMappingOn, dbSetCubeMappingOn, dbSetDetailMappingOn, dbSetEffectOn, dbSetGlobalShadowColor, dbSetGlobalShadowShades, dbSetGlobalShadowsOff, dbSetGlobalShadowsOn, dbSetLightMappingOn, dbSetRainbowShadingOn, dbSetReflectionShadingOn, dbSetShadingOff, dbSetShadowPosition, dbSetShadowShadingOff, dbSetSphereMappingOn