Class LODPreviewMaterialShader
Rendering Level Of Detail number as colors to debug LOD switches in editor.
Inheritance
Assembly: FlaxEngine.dll
File: Engine/Renderer/Editor/LODPreview.h
Syntax
public class LODPreviewMaterialShader : public IMaterial
Constructors
~LODPreviewMaterialShader()
Declaration
public virtual ~LODPreviewMaterialShader()
LODPreviewMaterialShader()
Declaration
public LODPreviewMaterialShader()
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
Bind 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
Instancing 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
Draw The draw passes supported by this material. |
Overrides
GetInfo()
Gets the material info, structure which describes material surface.
Declaration
public virtual MaterialInfo GetInfo() const override
Returns
Material The constant reference to the material descriptor. |
Overrides
GetShader()
Gets the shader resource.
Declaration
public virtual GPUShader* GetShader() const override
Returns
GPUShader
The material shader resource. |
Overrides
IsReady()
Returns true if material is ready for rendering.
Declaration
public virtual bool IsReady() const override
Returns
bool
True if can render that material |