Class MaterialGenerator
Material shaders generator from graphs.
Inheritance
MaterialGenerator
Inherited Members
MaterialGenerator
MaterialGenerator
MaterialGenerator
MaterialGenerator
MaterialGenerator
MaterialGenerator
MaterialGenerator
MaterialGenerator
Assembly: FlaxEngine.dll
File: Engine/Tools/MaterialGenerator/MaterialGenerator.h
Syntax
public class MaterialGenerator : public ShaderGenerator
Constructors
~MaterialGenerator()
Declaration
public ~MaterialGenerator()
MaterialGenerator()
Declaration
public MaterialGenerator()
Fields
getNormal
Declaration
public static MaterialValue getNormal
Field Value
Material
|
getNormalZero
Declaration
public static MaterialValue getNormalZero
Field Value
Material
|
getTime
Declaration
public static MaterialValue getTime
Field Value
Material
|
getUVs
Declaration
public static MaterialValue getUVs
Field Value
Material
|
getVertexColor
Declaration
public static MaterialValue getVertexColor
Field Value
Material
|
MaterialGraphBoxesMappings
Declaration
public static MaterialGraphBoxesMapping MaterialGraphBoxesMappings[]
Field Value
Material
|
Methods
AddLayer(MaterialLayer* layer)
Add new layer to the generator data (will be deleted after usage)
Declaration
public void AddLayer(MaterialLayer* layer)
Parameters
Material Layer to add |
Generate(WriteStream& source, MaterialInfo& materialInfo, BytesContainer& parametersData)
Generate material source code (first layer should be the base one)
Declaration
public bool Generate(WriteStream& source, MaterialInfo& materialInfo, BytesContainer& parametersData)
Parameters
Write Output source code |
Material Material info structure (will contain output data) |
Bytes Output material parameters data |
Returns
bool
True if cannot generate code, otherwise false |
GetLayer(const Guid& id, Node* caller)
Gets layer that has given ID, if not loaded tries to load it
Declaration
public MaterialLayer* GetLayer(const Guid& id, Node* caller)
Parameters
Guid
id
Layer ID |
Node
caller
Calling node |
Returns
Material Material layer or null if cannot do that |
GetMaterialRootNodeBox(MaterialGraphBoxes box)
Declaration
public static MaterialGraphBoxesMapping GetMaterialRootNodeBox(MaterialGraphBoxes box)
Parameters
Returns
Material
|
GetRootLayer()
Gets material root layer
Declaration
public MaterialLayer* GetRootLayer() const
Returns
Material Base layer |