FMaterialRenderContext

The context of a material being rendered.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

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

Include

#include "MaterialShared.h"

Syntax

struct FMaterialRenderContext

Remarks

The context of a material being rendered.

Variables

Name Description

Public variable

bool

 

bShowSelection

Whether or not selected objects should use their selection color.

Public variable

const FMaterial...

 

Material

Material resource to use.

Public variable

const FMaterial...

 

MaterialRenderProxy

Material instance used for the material shader

Constructors

Name Description

Public function

FMaterialRenderContext

(
    const FMaterialRenderProxy* In...,
    const FMaterial& InMaterial,
    const FSceneView* InView
)

Constructor

Functions

Name Description

Public function Const

FGuid

 

GetExternalTextureGuid

(
    const FGuid& ExternalTextureGuid,
    const FName& ParameterName,
    int32 SourceTextureIndex
)

Public function Const

void

 

GetTextureParameterValue

(
    const FHashedMaterialParameterInfo ...,
    int32 TextureIndex,
    const UTexture*& OutValue
)

Public function Const

void

 

GetTextureParameterValue

(
    const FHashedMaterialParameterInfo ...,
    int32 TextureIndex,
    const URuntimeVirtualTexture*&...
)