GetDirectionalShadowResolution

Definition

int GetDirectionalShadowResolution()

Description

This function returns the resolution of directional light shadow.

Return Value

The resolution of directional light shadow. Return values are 1024, 2048 or 4096.

Example

value = 0

function Init()
    value = GetDirectionalShadowResolution()

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

function Update()

end
First we get the resolution value of direcional light shadow. Then we display the result in the console using the PrintConsole function.
adminGetDirectionalShadowResolution