engineGetMaterialAlphaClip
Client
Gives whether the material cuts pixels out by their alpha, and below which alpha.
float|false|nil engineGetMaterialAlphaClip(material material)
Parameters
| Name | Type | Description |
|---|---|---|
| material | material | The material. |
Returns
The alpha threshold, from 0 to 1. false when the material does not cut out. nil when it does not say and follows its base.
Example
local material = engineCreateMaterial("surface")
engineSetMaterialAlphaClip(material, 0.5)
outputDebugString(tostring(engineGetMaterialAlphaClip(material)))