![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RenderResource.h>
Public Member Functions | |
| FMipBiasFade () | |
| RENDERCORE_API void | SetNewMipCount (float ActualMipCount, float TargetMipCount, double LastRenderTime, EMipFadeSettings FadeSetting) |
| float | CalcMipBias () const |
| bool | IsFading () const |
Public Attributes | |
| float | TotalMipCount |
| float | MipCountDelta |
| float | StartTime |
| float | MipCountFadingRate |
| float | BiasOffset |
Functionality for fading in/out texture mip-levels.
|
inline |
Default constructor that sets all values to default (no mips).
|
inline |
Calculates the interpolated mip-bias based on the current time.
|
inline |
Checks whether the mip-bias is still interpolating.
| void FMipBiasFade::SetNewMipCount | ( | float | ActualMipCount, |
| float | TargetMipCount, | ||
| double | LastRenderTime, | ||
| EMipFadeSettings | FadeSetting | ||
| ) |
Sets up a new interpolation target for the mip-bias.
| ActualMipCount | Number of mip-levels currently in memory |
| TargetMipCount | Number of mip-levels we're changing to |
| LastRenderTime | Timestamp when it was last rendered (FApp::CurrentTime time space) |
| FadeSetting | Which fade speed settings to use |
| float FMipBiasFade::BiasOffset |
Difference between total texture mipcount and the starting mipcount for the fade.
| float FMipBiasFade::MipCountDelta |
Number of mip-levels to fade (negative if fading out / decreasing the mipcount).
| float FMipBiasFade::MipCountFadingRate |
Number of seconds to interpolate through all MipCountDelta (inverted).
| float FMipBiasFade::StartTime |
Timestamp when the fade was started.
| float FMipBiasFade::TotalMipCount |
Number of mip-levels in the texture.