Garry's Mod Wiki

IMaterial:GetKeyValues

  table IMaterial:GetKeyValues()

Description

Gets all the key values defined for the material.

Returns

1 table
The material's key values.

Example

Example output of this function

Output:
$alpha=1 $alphatestreference=0 $basetexture=userdata: 0x2e13fc18 $basetexturetransform=[1.00000,0.00000,0.00000,0.00000] [0.00000,1.00000,0.00000,0.00000] [0.00000,0.00000,1.00000,0.00000] [0.00000,0.00000,0.00000,1.00000] $color=1.000000 1.000000 1.000000 $color2=1.000000 1.000000 1.000000 $depthblend=0 $depthblendscale=50 $detailblendfactor=1 $detailblendmode=0 $detailframe=0 $detailscale=4 $detailtexturetransform=[1.00000,0.00000,0.00000,0.00000] [0.00000,1.00000,0.00000,0.00000] [0.00000,0.00000,1.00000,0.00000] [0.00000,0.00000,0.00000,1.00000] $distancealpha=0 $distancealphafromdetail=0 $edgesoftnessend=0.5 $edgesoftnessstart=0.5 $envmapcontrast=0 $envmapframe=0 $envmapmaskframe=0 $envmapmasktransform=[1.00000,0.00000,0.00000,0.00000] [0.00000,1.00000,0.00000,0.00000] [0.00000,0.00000,1.00000,0.00000] [0.00000,0.00000,0.00000,1.00000] $envmapsaturation=1 $envmaptint=1.000000 1.000000 1.000000 $flags=32896 $flags2=262144 $flags_defined=32896 $flags_defined2=0 $flashlighttexture=userdata: 0x2e13fe68 $flashlighttextureframe=0 $frame=0 $gammacolorread=0 $glow=0 $glowalpha=1 $glowcolor=1.000000 1.000000 1.000000 $glowend=0 $glowstart=0 $glowx=0 $glowy=0 $hdrcolorscale=1 $linearwrite=0 $outline=0 $outlinealpha=1 $outlinecolor=1.000000 1.000000 1.000000 $outlineend0=0 $outlineend1=0 $outlinestart0=0 $outlinestart1=0 $phong=0 $phongalbedotint=0 $phongboost=0 $phongexponent=0 $phongfresnelranges=0.000000 0.000000 0.000000 $phongtint=0.000000 0.000000 0.000000 $receiveflashlight=0 $scaleedgesoftnessbasedonscreenres=0 $scaleoutlinesoftnessbasedonscreenres=0 $separatedetailuvs=0 $softedges=0 $srgbtint=1.000000 1.000000 1.000000 $vertexalphatest=0