Material

A Material is an object used to control how objects appear, through coloring, texturing, and shading. The Material itself holds sets of colors, textures, and other parameters that are made available to Shaders.

Constructor

lovr.graphics.newMaterialCreate a new Material.

Methods

Material:getScalarGet a scalar property of the Material.
Material:setScalarSet a scalar property of the Material.
Material:getTextureGet a texture for the Material.
Material:setTextureSet a texture for the Material.
Material:getColorGet a color property of the Material.
Material:setColorSet a color property of the Material.
Material:getTransformGet the transformation applied to texture coordinates.
Material:setTransformSet the transformation applied to texture coordinates.

See also