Definition
DisableWaterShadow(string waterName)
Description
This function disables the shadow of reflections of objects in water.
Parameters
waterName
Specifies the water name. You can also use the name “this” for this parameter. In this case, “this” refers to the water object that this script is attached to.
Example 1
function Init() DisableWaterShadow("water1") end function Update() end
Disables the shadow of reflections of objects in water “water1”.
Example 2
--name of script is DisableWaterShadow2.lua function Init() DisableWaterShadow("this") end function Update() end
Disables the shadow of reflections of objects in current water. For example, if you attach the DisableWaterShadow2.lua script to a water named “water1”, then the name “this” will be equivalent to “water1”.
DisableWaterShadow