Garry's Mod Wiki

Revision Difference

Material_Flags#523760

<title>Material Flags</title>⤶ ⤶ This page describes material flags stored in the `$flags` variable.⤶ ⤶ To be used with <page>IMaterial:SetInt</page> and <page>IMaterial:GetInt</page>⤶ ⤶ # The list⤶ ⤶ Flag | Value |⤶ -----|-------|⤶ | $debug | 1 |⤶ | $no_fullbright | 2 |⤶ | $no_draw | 4 |⤶ | $use_in_fillrate_mode | 8 |⤶ | $vertexcolor | 16 |⤶ | $vertexalpha | 32 |⤶ | $selfillum | 64 |⤶ | $additive | 128 |⤶ | $alphatest | 256 |⤶ | $multipass | 512 |⤶ | $znearer | 1024 |⤶ | $model | 2048 |⤶ | $flat | 4096 |⤶ | $nocull | 8192 |⤶ | $nofog | 16384 |⤶ | $ignorez | 32768 |⤶ | $decal | 65536 |⤶ | $envmapsphere | 131072 |⤶ | $noalphamod | 262144 |⤶ | $envmapcameraspace | 524288 |⤶ | $basealphaenvmapmask | 1 |⤶ | $translucent | 1 |⤶ | $normalmapalphaenvmapmask | 1 |⤶ | $softwareskin | 1 |⤶ | $opaquetexture | 1 |⤶ | $envmapmode | 1 |⤶ | $nodecal | 1 |⤶ | $halflambert | 1 |⤶ | $wireframe | 1 |⤶ | $allowalphatocoverage | 1 |⤶ ⤶ Source: [imaterial.h](https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/public/materialsystem/imaterial.h#L353)