EMaterialValueType

The types which can be used by materials.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialShared.h

Include

#include "MaterialShared.h"

Syntax

enum EMaterialValueType
{
    MCT_Float1                = 1,
    MCT_Float2                = 2,
    MCT_Float3                = 4,
    MCT_Float4                = 8,
    MCT_Float                 = 8|4|2|1,
    MCT_Texture2D             = 1 << 4,
    MCT_TextureCube           = 1 << 5,
    MCT_Texture2DArray        = 1 << 6,
    MCT_VolumeTexture         = 1 << 7,
    MCT_StaticBool            = 1 << 8,
    MCT_Unknown               = 1 << 9,
    MCT_MaterialAttributes    = 1 << 10,
    MCT_TextureExternal       = 1 << 11,
    MCT_TextureVirtual        = 1 << 12,
    MCT_Texture               = MCT_Texture2D | MCT_TextureCube | MCT_Texture2DArray | MCT_VolumeTexture | MCT_TextureExternal | MCT_TextureVirtual,
    MCT_VTPageTableResult     = 1 << 13,
    MCT_ShadingModel          = 1 << 14,
}

Values

Name

Description

MCT_Float1

A scalar float type.

MCT_Float2

MCT_Float3

MCT_Float4

MCT_Float

Any size float type by definition, but this is treated as a scalar which can auto convert (by replication) to any other size float vector.

MCT_Texture2D

MCT_TextureCube

MCT_Texture2DArray

MCT_VolumeTexture

MCT_StaticBool

MCT_Unknown

MCT_MaterialAttributes

MCT_TextureExternal

MCT_TextureVirtual

MCT_Texture

MCT_VTPageTableResult

Used internally when sampling from virtual textures

MCT_ShadingModel

Remarks

The types which can be used by materials.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss