EMaterialShaderMapUsage::Type

Usage options for a shader map.

Windows
MacOS
Linux

Syntax

namespace EMaterialShaderMapUsage
{
    enum Type
    {
        Default,
        LightmassExportEmissive,
        LightmassExportDiffuse,
        LightmassExportOpacity,
        LightmassExportNormal,
        MaterialExportBaseColor,
        MaterialExportSpecular,
        MaterialExportNormal,
        MaterialExportMetallic,
        MaterialExportRoughness,
        MaterialExportAO,
        MaterialExportEmissive,
        MaterialExportOpacity,
        MaterialExportOpacityMask,
        MaterialExportSubSurfaceColor,
        DebugViewMode,
    }
}

Values

Name

Description

Default

LightmassExportEmissive

LightmassExportDiffuse

LightmassExportOpacity

LightmassExportNormal

MaterialExportBaseColor

MaterialExportSpecular

MaterialExportNormal

MaterialExportMetallic

MaterialExportRoughness

MaterialExportAO

MaterialExportEmissive

MaterialExportOpacity

MaterialExportOpacityMask

MaterialExportSubSurfaceColor

DebugViewMode

Remarks

Usage options for a shader map. The purpose of EMaterialShaderMapUsage is to allow creating a unique yet deterministic (no appCreateGuid) Id, For a shader map corresponding to any UMaterial or UMaterialInstance, for different use cases. As an example, when exporting a material to Lightmass we want to compile a shader map with FLightmassMaterialProxy, And generate a FMaterialShaderMapId for it that allows reuse later, so it must be deterministic.

References

Module

Engine

Header

Runtime/Engine/Public/MaterialShared.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback