Definition
string GetDirectionalShadowAlgorithm()
Description
This function returns the algorithm name of directional light shadow.
Return Value
Algorithm name of directional light shadow. The return values are:
- “SHADOW_SINGLE_HL”
- “SHADOW_SINGLE”
- “SHADOW_MULTI_LEAK”
- “SHADOW_MULTI_NOLEAK”
- “SHADOW_PCF”
- “SHADOW_PCF_TRILIN”
- “SHADOW_PCF_4TAP”
- “SHADOW_PCF_8TAP”
- “SHADOW_PCF_GAUSSIAN”
Example
value = "" function Init() value = GetDirectionalShadowAlgorithm() message = string.format("\nDirectional shadow algorithm is : %s" ,value) PrintConsole(message) end function Update() end
First we get the algorithm name of direcional light shadow. Then we display the result in the console using the PrintConsole function.
GetDirectionalShadowAlgorithm