Garry's Mod Wiki

Material Flags

This page describes material flags stored in the $flags variable.

To be used with IMaterial:SetInt and IMaterial:GetInt

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 1048576
$translucent 2097152
$normalmapalphaenvmapmask 4194304
$softwareskin 8388608
$opaquetexture 16777216
$envmapmode 33554432
$nodecal 67108864
$halflambert 134217728
$wireframe 268435456
$allowalphatocoverage 536870912

Source: imaterial.h