Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Script Lifecycle
  5. Materials and shaders

Materials and shaders

There’s a list of materials and shaders you can load by default by calling obj.useGlobalMaterial

  • CheckerTile
  • GreenTile
  • MetalPlate
  • SolarPanel
  • BrownLeather
  • SheetMetal
  • Dirt
  • Grass
  • Sand
  • Copper
  • Iron
  • Steel
  • WhiteGrid
  • WhiteSquare
  • Glass
  • Water
  • WaterSurface
  • RedHaze
  • SolidColor

To create more materials at runtime, use obj.createGlobalMaterial

Tags
Was this article helpful to you? Yes No

How can we help?