engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FMipBiasFade结构体 参考

Functionality for fading in/out texture mip-levels. 更多...

#include <RenderResource.h>

Public 成员函数

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. 更多...
 

Public 属性

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.

参数
ActualMipCountNumber of mip-levels currently in memory
TargetMipCountNumber of mip-levels we're changing to
LastRenderTimeTimestamp when it was last rendered (FApp::CurrentTime time space)
FadeSettingWhich fade speed settings to use

该结构体的文档由以下文件生成: