class Material : Resource

book_4_sparkGenerated
code_blocksInput

Description

A material. Uses several textures and a shader with specific settings for more interesting visual effects.

Members

Static Members

Member NameSummary
CreateCreates a new material with the specified name and shader.
FromShaderCreates a material from a specified shader.
LoadLoads a material from a file.
LoadAsyncAsynchronously loads a material from a file.

Instance Members

Member NameSummary
CreateCopyCreate a copy of this material.
SetSets a parameter value for the material.
GetTextureRetrieves a texture by name from the material.
NameName (or path) of the material.
AttributesAccess to all of the attributes of this material.
ShaderNameGets the underlying shader name for this material.
ShaderGets the material's shader.
FirstTextureGets the first texture of the material.
FlagsAccess flags on this material, which usually hint about the contents.