Class ForwardMaterialShader
Represents material that can be used to render objects with Forward Rendering.
Assembly: FlaxEngine.dll
File: Engine/Graphics/Materials/ForwardMaterialShader.h
Syntax
public class ForwardMaterialShader : public MaterialShader
Constructors
ForwardMaterialShader(const StringView& name)
Init
Declaration
public ForwardMaterialShader(const StringView& name)
Parameters
StringView
name
Material resource name |
Methods
Bind(BindParameters& params)
Binds the material state to the GPU pipeline. Should be called before the draw command.
Declaration
public virtual void Bind(BindParameters& params) override
Parameters
BindParameters
params
The material bind settings. |
Overrides
CanUseInstancing(InstancingHandler& handler)
Returns true if material can use draw calls instancing.
Declaration
public virtual bool CanUseInstancing(InstancingHandler& handler) const override
Parameters
InstancingHandler
handler
The output data for the instancing handling used to hash, batch and write draw calls. Valid only when function returns true. |
Returns
bool
True if can use instancing, otherwise false. |
Overrides
GetDrawModes()
Gets the mask of render passes supported by this material.
Declaration
public virtual DrawPass GetDrawModes() const override
Returns
DrawPass
The draw passes supported by this material. |
Overrides
Load()
Unload()
Clears the loaded data.
Declaration
public virtual void Unload() override