Functionality for fading in/out texture mip-levels.
更多...
#include <RenderResource.h>
|
| float | CalcMipBias () const |
| | Calculates the interpolated mip-bias based on the current time. 更多...
|
| |
|
| FMipBiasFade () |
| | Default constructor that sets all values to default (no mips).
|
| |
| bool | IsFading () const |
| | Checks whether the mip-bias is still interpolating. 更多...
|
| |
| RENDERCORE_API void | SetNewMipCount (float ActualMipCount, float TargetMipCount, double LastRenderTime, EMipFadeSettings FadeSetting) |
| | Sets up a new interpolation target for the mip-bias. 更多...
|
| |
|
|
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.
|
| |
Functionality for fading in/out texture mip-levels.
◆ CalcMipBias()
| float FMipBiasFade::CalcMipBias |
( |
| ) |
const |
|
inline |
Calculates the interpolated mip-bias based on the current time.
- 返回
- Interpolated mip-bias value
◆ IsFading()
| bool FMipBiasFade::IsFading |
( |
| ) |
const |
|
inline |
Checks whether the mip-bias is still interpolating.
- 返回
- true if the mip-bias is still interpolating
◆ SetNewMipCount()
| RENDERCORE_API 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 |
该结构体的文档由以下文件生成: