Material Constructor Delta Engine Documentation
Overload List

  NameDescription
Public methodMaterial(Color)
Creates an 1x1 image with a colored shader material for simple solid flat surfaces. View code on GitHub
Public methodMaterial(Color, ShaderFlags)
Initializes a new instance of the Material class
Public methodMaterial(Shader, Image)
Special constructor for creating custom shaders and images or reusing existing instances. View code on GitHub
Public methodMaterial(ShaderFlags, String)
As opposed to loading a material from content it can also be created with this constructor. If imageOrAnimationName is used you need to provide either a DiffuseMap or an Animation. View code on GitHub
Public methodMaterial(Size, ShaderFlags)
Creates a new image with the specified size to be filled dynamically (via .DiffuseMap.Fill). View code on GitHub
Top
See Also