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)

Select Skin
Light
Dark

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