FPrimitiveSceneProxy::GetMaterialTextureScales

Get mesh UV density for a LOD-section.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/PrimitiveSceneProxy.h

Include

#include "PrimitiveSceneProxy.h"

Source

/Engine/Source/Runtime/Engine/Private/PrimitiveSceneProxy.cpp

Syntax

virtual bool GetMaterialTextureScales
(
    int32 LODIndex,
    int32 SectionIndex,
    const class FMaterialRenderProxy * MaterialRenderProxy,
    FVector4 * OneOverScales,
    struct FIntVector4 * UVChannelIndices
) const

Remarks

Get mesh UV density for a LOD-section.

Returns

Whether scales were computed or not.

Parameters

Parameter

Description

LODIndex

LOD index (INDEX_NONE for all)

ElementIndex

Element index (INDEX_NONE for all)

MaterialRenderProxy

Material bound to that LOD-section

OneOverScales

(OUT) One over the texture scales (array size = TEXSTREAM_MAX_NUM_TEXTURES_PER_MATERIAL / 4)

UVChannelIndices

(OUT) The related index for each (array size = TEXSTREAM_MAX_NUM_TEXTURES_PER_MATERIAL / 4)

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