UTextureLODSettings::CalculateLODBias

Calculates and returns the LOD bias based on the information provided.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/TextureLODSettings.h

Include

#include "Engine/TextureLODSettings.h"

Source

/Engine/Source/Runtime/Engine/Private/TextureLODSettings.cpp

Syntax

int32 CalculateLODBias
(
    int32 Width,
    int32 Height,
    int32 MaxSize,
    int32 LODGroup,
    int32 LODBias,
    int32 NumCinematicMipLevels,
    TextureMipGenSettings MipGenSetting,
    bool bVirtualTexture
) const

Remarks

Calculates and returns the LOD bias based on the information provided.

Returns

LOD bias

Parameters

Parameter

Description

Width

Width of the texture

Height

Height of the texture

LODGroup

Which LOD group the texture belongs to

LODBias

LOD bias to include in the calculation

NumCinematicMipLevels

The texture cinematic mip levels to include in the calculation

MipGenSetting

Mip generation setting

bVirtualTexture

If VT is enabled (in this case group's max LOD is ignored)

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