M MY Multiplayer: Wiki
Side
Kind

engineGetMaterialAlphaClip

Client

Gives whether the material cuts pixels out by their alpha, and below which alpha.

float|false|nil engineGetMaterialAlphaClip(material material)

Parameters

NameTypeDescription
materialmaterialThe 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)))

See also