Skip to content

Material

Functions

  • AddTexture(): Set the texture in a slot: (texture, slot); nil removes it
  • CastsShadows(): Whether the material casts shadows
  • GetShader(): Get the shader name
  • GetTextureOffset(): Get the texture offset
  • GetTilingFactor(): Get how many times textures repeat
  • GetTint(): Get the colour multiplied over the textures
  • IsTransparent(): Whether the material is drawn with transparency
  • IsTwoSided(): Whether back faces are drawn
  • SetCastShadows(): Set whether the material casts shadows
  • SetShader(): Set the shader by name
  • SetTextureOffset(): Set the texture offset
  • SetTilingFactor(): Set how many times textures repeat
  • SetTint(): Set the colour multiplied over the textures
  • SetTransparency(): Set whether the material is drawn with transparency
  • SetTwoSided(): Set whether back faces are drawn