⚙ïļmaterial

material datatype

Functions

modulate

material:modulate(render.color(255, 0, 0, 0))

color

color to modulate material to

get_flag

material:get_flag(mat.var_ignorez)

flag

flag to get

Returns:

flag state

boolean

set_flag

material:set_flag(mat.var_ignorez, true)

flag

flag to set

state

boolean

new state

find_var

material:find_var("$basetexture")

variable name

string

Returns:

var object

get_name

material:get_name()

Returns:

material's name

string

get_group

material:get_group()

Returns:

material's group name

string

Enums

Material var flags

  • var_debug

  • var_no_debug_override

  • var_no_draw

  • var_use_in_fillrate_mode

  • var_vertexcolor

  • var_vertexalpha

  • var_selfillum

  • var_additive

  • var_alphatest

  • var_znearer

  • var_model

  • var_flat

  • var_nocull

  • var_nofog

  • var_ignorez

  • var_decal

  • var_envmapsphere

  • var_envmapcameraspace

  • var_basealphaenvmapmask

  • var_translucent

  • var_normalmapalphaenvmapmask

  • var_needs_software_skinning

  • var_opaquetexture

  • var_envmapmode

  • var_suppress_decals

  • var_halflambert

  • var_wireframe

  • var_allowalphatocoverage

  • var_alpha_modified_by_proxy

  • var_vertexfog

Last updated