Definition
SetDirectionalShadowLight(string directionalLightName)
Description
This function specifies the directional light that can cast the shadows. It should be noted that only one directional light in current VScene can cast the shadows.
Parameters
directionalLightName
Specifies the directional light name that can cast the shadows.
Example
function Init() SetDirectionalShadowLight("light2") end function Update() end
Assume that “light2” is a directional light. The SetDirectionalShadowLight function in this example determines that “light2” will cast the shadows.
SetDirectionalShadowLight