IProceduralModel Interface
Namespace: Stride.Rendering.ProceduralModelsAssembly: Stride.Rendering.dll
Interface to create a procedural model.
public interface IProceduralModel
Name | Description | |
---|---|---|
Properties | ||
MaterialInstances | Gets the collection of material instances used by this IProceduralModel/ |
|
Methods | ||
Generate(IServiceRegistry, Model) | Creates a procedural model. |
|
SetMaterial(String, Material) |
Properties
MaterialInstances
Gets the collection of material instances used by this IProceduralModel/
[Display(null, null, Browsable = false)]
IEnumerable<KeyValuePair<string, MaterialInstance>> MaterialInstances { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, MaterialInstance>> |
Methods
Generate(IServiceRegistry, Model)
Creates a procedural model.
void Generate(IServiceRegistry services, Model model)
Parameters
Type | Name | Description |
---|---|---|
IServiceRegistry | services | The services registry. |
Model | model | A model instance to fill with procedural content. |
SetMaterial(String, Material)
void SetMaterial(string name, Material material)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
Material | material |