Fixed-rate owning transform history emitted as mesh-particle instances. 更多...
#include <MotionEchoEffect.h>
Public 成员函数 | |
| AfterimageEffect (AfterimageEffectConfig config={}) | |
| Construct with sanitized timing/capacity limits. | |
| void | reset () noexcept |
| Clear images and reset stable identity/timing state. | |
| MotionEchoAdvanceReport | update (float deltaSeconds, const glm::mat4 ¤tModel) |
| Advance and capture the current model at fixed intervals. | |
| std::vector< MeshParticleInstance > | snapshot () const |
| Return render instances in oldest-to-newest stable order. | |
| std::size_t | size () const noexcept |
| Return retained image count. | |
详细描述
Fixed-rate owning transform history emitted as mesh-particle instances.
Stable IDs remain valid until each snapshot expires. The class owns no mesh, shader or target handle and is therefore safe to update outside rendering.
在文件 MotionEchoEffect.h 第 95 行定义.
构造及析构函数说明
◆ AfterimageEffect()
|
explicit |
Construct with sanitized timing/capacity limits.
在文件 MotionEchoEffect.cpp 第 130 行定义.
引用了 eve::stylize::AfterimageEffectConfig::lifetimeSeconds, eve::stylize::AfterimageEffectConfig::maximumImages , 以及 eve::stylize::AfterimageEffectConfig::sampleIntervalSeconds.
成员函数说明
◆ reset()
|
noexcept |
Clear images and reset stable identity/timing state.
在文件 MotionEchoEffect.cpp 第 143 行定义.
◆ size()
|
inlinenoexcept |
Return retained image count.
在文件 MotionEchoEffect.h 第 116 行定义.
◆ snapshot()
| std::vector< MeshParticleInstance > eve::stylize::AfterimageEffect::snapshot | ( | ) | const |
Return render instances in oldest-to-newest stable order.
在文件 MotionEchoEffect.cpp 第 188 行定义.
引用了 eve::stylize::AfterimageEffectConfig::colorEnd, eve::stylize::AfterimageEffectConfig::colorStart, image, eve::stylize::AfterimageEffectConfig::lifetimeSeconds , 以及 t.
◆ update()
| MotionEchoAdvanceReport eve::stylize::AfterimageEffect::update | ( | float | deltaSeconds, |
| const glm::mat4 & | currentModel | ||
| ) |
Advance and capture the current model at fixed intervals.
- 参数
-
deltaSeconds Non-negative caller-owned simulation delta. currentModel Current world model matrix copied into new snapshots.
- 返回
- Capture, expiration and live counters.
在文件 MotionEchoEffect.cpp 第 149 行定义.
引用了 eve::stylize::MotionEchoAdvanceReport::alive, eve::stylize::MotionEchoAdvanceReport::captured, eve::stylize::MotionEchoAdvanceReport::expired, image, eve::stylize::AfterimageEffectConfig::lifetimeSeconds, eve::stylize::AfterimageEffectConfig::maximumImages , 以及 eve::stylize::AfterimageEffectConfig::sampleIntervalSeconds.
该类的文档由以下文件生成:
- src/modules/stylize/MotionEchoEffect.h
- src/modules/stylize/MotionEchoEffect.cpp