Navigation
API > API/Runtime > API/Runtime/RenderCore
Functionality for fading in/out texture mip-levels.
| Name | FMipBiasFade |
| Type | struct |
| Header File | /Engine/Source/Runtime/RenderCore/Public/RenderResource.h |
| Include Path | #include "RenderResource.h" |
Syntax
struct FMipBiasFade
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMipBiasFade() |
Default constructor that sets all values to default (no mips). | RenderResource.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BiasOffset | float | Difference between total texture mipcount and the starting mipcount for the fade. | RenderResource.h | |
| MipCountDelta | float | Number of mip-levels to fade (negative if fading out / decreasing the mipcount). | RenderResource.h | |
| MipCountFadingRate | float | Number of seconds to interpolate through all MipCountDelta (inverted). | RenderResource.h | |
| StartTime | float | Timestamp when the fade was started. | RenderResource.h | |
| TotalMipCount | float | Number of mip-levels in the texture. | RenderResource.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float CalcMipBias() |
Calculates the interpolated mip-bias based on the current time. | RenderResource.h | |
bool IsFading() |
Checks whether the mip-bias is still interpolating. | RenderResource.h | |
void SetNewMipCount
(
float ActualMipCount, |
Sets up a new interpolation target for the mip-bias. | RenderResource.h |