Search Results for

    Show / Hide Table of Contents

    Class LODPreviewMaterialShader

    Rendering Level Of Detail number as colors to debug LOD switches in editor.

    Inheritance
    IMaterial
    LODPreviewMaterialShader
    Inherited Members
    IMaterial::CanUseLightmap()
    IMaterial::IsDecal()
    IMaterial::IsDeformable()
    IMaterial::IsGUI()
    IMaterial::IsParticle()
    IMaterial::IsPostFx()
    IMaterial::IsSurface()
    IMaterial::IsTerrain()
    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
    BindParameters params

    The material bind settings.

    Overrides
    IMaterial::Bind(BindParameters& params)

    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
    IMaterial::CanUseInstancing(InstancingHandler& handler)

    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
    IMaterial::GetDrawModes()

    GetInfo()

    Gets the material info, structure which describes material surface.

    Declaration
    public virtual MaterialInfo GetInfo() const override
    Returns
    MaterialInfo

    The constant reference to the material descriptor.

    Overrides
    IMaterial::GetInfo()

    GetShader()

    Gets the shader resource.

    Declaration
    public virtual GPUShader* GetShader() const override
    Returns
    GPUShader

    The material shader resource.

    Overrides
    IMaterial::GetShader()

    IsReady()

    Returns true if material is ready for rendering.

    Declaration
    public virtual bool IsReady() const override
    Returns
    bool

    True if can render that material

    Overrides
    IMaterial::IsReady()
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ~LODPreviewMaterialShader()
      • LODPreviewMaterialShader()
    • Methods
      • Bind(BindParameters& params)
      • CanUseInstancing(InstancingHandler& handler)
      • GetDrawModes()
      • GetInfo()
      • GetShader()
      • IsReady()
    Back to top Copyright © 2012-2024 Wojciech Figat