SetDirectionalShadowNumberOfSplits

Definition

SetDirectionalShadowNumberOfSplits(int numberOfSplits)

Description

This function sets the number of splits of directional light shadow to numberOfSplits.

Parameters

numberOfSplits
Specifies the number of splits of directional light shadow. Accepted values are 1, 2, 3 and 4.

Example

function Init()
    SetDirectionalShadowNumberOfSplits(2)
end

function Update()

end
This script sets the number of splits of directional light shadow to 2.
adminSetDirectionalShadowNumberOfSplits