FMipBiasFade

Functionality for fading in/out texture mip-levels.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/RenderResource.h

Include

#include "RenderResource.h"

Syntax

struct FMipBiasFade

Remarks

Functionality for fading in/out texture mip-levels.

Variables

Name Description

Public variable

float

 

BiasOffset

Difference between total texture mipcount and the starting mipcount for the fade.

Public variable

float

 

MipCountDelta

Number of mip-levels to fade (negative if fading out / decreasing the mipcount).

Public variable

float

 

MipCountFadingRate

Number of seconds to interpolate through all MipCountDelta (inverted).

Public variable

float

 

StartTime

Timestamp when the fade was started.

Public variable

float

 

TotalMipCount

Number of mip-levels in the texture.

Constructors

Name Description

Public function

FMipBiasFade()

Default constructor that sets all values to default (no mips).

Functions

Name Description

Public function Const

float

 

CalcMipBias()

Calculates the interpolated mip-bias based on the current time.

Public function Const

bool

 

IsFading()

Checks whether the mip-bias is still interpolating.

Public function

void

 

SetNewMipCount

(
    float ActualMipCount,
    float TargetMipCount,
    double LastRenderTime,
    EMipFadeSettings FadeSetting
)

Sets up a new interpolation target for the mip-bias.

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