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 Namespace: DeltaEngine.ContentAssembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
public Material(
ShaderFlags shaderFlags,
string imageOrAnimationName
)
public Material(
ShaderFlags shaderFlags,
string imageOrAnimationName
)
Public Sub New (
shaderFlags As ShaderFlags,
imageOrAnimationName As String
)
Public Sub New (
shaderFlags As ShaderFlags,
imageOrAnimationName As String
)
public:
Material(
ShaderFlags shaderFlags,
String^ imageOrAnimationName
)
public:
Material(
ShaderFlags shaderFlags,
String^ imageOrAnimationName
)
new :
shaderFlags : ShaderFlags *
imageOrAnimationName : string -> Material
new :
shaderFlags : ShaderFlags *
imageOrAnimationName : string -> Material