GetDirectionalShadowNumberOfSplits

Definition

int GetDirectionalShadowNumberOfSplits()

Description

This function returns the number of splits of directional light shadow.

Return Value

The number of splits of directional light shadow. Return values are 1, 2, 3 or 4.

Example

value = 0

function Init()
    value = GetDirectionalShadowNumberOfSplits()

    message = string.format("\nDirectional shadow number of splits is : %d" ,value)
    PrintConsole(message)
end

function Update()

end
First we get the number of splits of direcional light shadow. Then we display the result in the console using the PrintConsole function.
adminGetDirectionalShadowNumberOfSplits