Class MaterialConfiguration
- Namespace
- Bonsai.Shaders.Configuration
- Assembly
- Bonsai.Shaders.dll
Provides configuration and loading functionality for material shader programs.
public class MaterialConfiguration : ShaderConfiguration, IResourceConfiguration
- Inheritance
-
MaterialConfiguration
- Implements
- Inherited Members
Properties
FragmentShader
Gets or sets the path to the fragment shader file.
[FileNameFilter("Fragment Shader Files (*.frag)|*.frag|All Files (*.*)|*.*")]
public string FragmentShader { get; set; }
Property Value
GeometryShader
Gets or sets the path to the geometry shader file.
[FileNameFilter("Geometry Shader Files (*.geom)|*.geom|All Files (*.*)|*.*")]
public string GeometryShader { get; set; }
Property Value
MeshName
Gets or sets the name of the mesh geometry to draw.
[TypeConverter(typeof(MeshNameConverter))]
public string MeshName { get; set; }
Property Value
VertexShader
Gets or sets the path to the vertex shader file.
[FileNameFilter("Vertex Shader Files (*.vert)|*.vert|All Files (*.*)|*.*")]
public string VertexShader { get; set; }
Property Value
Methods
CreateResource(ResourceManager)
Creates a new material shader resource.
public override Shader CreateResource(ResourceManager resourceManager)
Parameters
resourceManager
ResourceManagerThe ResourceManager object onto which this resource will be loaded. The resource manager can be accessed to load additional resource dependencies which may be required to create the new resource.
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.