Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/RenderCore/Public/RenderResource.h |
Include |
#include "RenderResource.h" |
struct FMipBiasFade
Functionality for fading in/out texture mip-levels.
Name | Description | ||
---|---|---|---|
|
float |
BiasOffset |
Difference between total texture mipcount and the starting mipcount for the fade. |
|
float |
MipCountDelta |
Number of mip-levels to fade (negative if fading out / decreasing the mipcount). |
|
float |
MipCountFadingRate |
Number of seconds to interpolate through all MipCountDelta (inverted). |
|
float |
StartTime |
Timestamp when the fade was started. |
|
float |
TotalMipCount |
Number of mip-levels in the texture. |
Name | Description | |
---|---|---|
|
FMipBiasFade() |
Default constructor that sets all values to default (no mips). |
Name | Description | ||
---|---|---|---|
|
float |
CalcMipBias() |
Calculates the interpolated mip-bias based on the current time. |
|
IsFading() |
Checks whether the mip-bias is still interpolating. |
|
|
SetNewMipCount ( |
Sets up a new interpolation target for the mip-bias. |