UTextureLODSettings::CalculateLODBias

Calculates and returns the LOD bias based on texture LOD group, LOD bias and maximum size.

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
(
    const UTexture * Texture,
    bool bIncCinematicMips
) const

Remarks

Calculates and returns the LOD bias based on texture LOD group, LOD bias and maximum size.

Returns

LOD bias

Parameters

Parameter

Description

Texture

Texture object to calculate LOD bias for.

bIncCinematicMips

If true, cinematic mips will also be included in consideration

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