Navigation
Unreal Engine C++ API Reference > Runtime > RenderCore
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
Type | 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. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FMipBiasFade () |
Default constructor that sets all values to default (no mips). |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
float | CalcMipBias () |
Calculates the interpolated mip-bias based on the current time. |
![]() ![]() |
bool | IsFading () |
Checks whether the mip-bias is still interpolating. |
![]() |
void | SetNewMipCount
(
float ActualMipCount, |
Sets up a new interpolation target for the mip-bias. |