Overload List
Name | Description | |
---|---|---|
Material(Color) |
Creates an 1x1 image with a colored shader material for simple solid flat surfaces.
View code on GitHub | |
Material(Color, ShaderFlags) | Initializes a new instance of the Material class | |
Material(Shader, Image) |
Special constructor for creating custom shaders and images or reusing existing instances.
View code on GitHub | |
Material(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 | |
Material(Size, ShaderFlags) |
Creates a new image with the specified size to be filled dynamically (via .DiffuseMap.Fill).
View code on GitHub |
See Also