SetDirectionalShadowAlgorithm

Definition

SetDirectionalShadowAlgorithm(string shadowAlgorithmCode)

Description

This function sets the algorithm of directional light shadow to shadowAlgorithmCode.

Parameters

shadowAlgorithmCode
Specifies the algorithm of directional light shadow. Accepted 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

function Init()
    SetDirectionalShadowAlgorithm("SHADOW_PCF")
end

function Update()

end
This script sets the algorithm of direcional light shadow to “SHADOW_PCF”.
adminSetDirectionalShadowAlgorithm