feat(render): interpolate entity transforms for rendering

Add RenderTransform component to smooth position/direction updates
and use it in entity and shadow passes.
This commit is contained in:
2026-08-04 10:59:56 +08:00
parent e2bbc2d57f
commit d970988022
4 changed files with 30 additions and 13 deletions

View File

@@ -10,4 +10,5 @@ struct WalkPose {
// for sound play
float moving_time = 0.0f;
};
} // namespace Cubed

View File

@@ -21,4 +21,10 @@ struct Transform {
Direction direction{};
};
struct RenderTransform {
Position position{};
Orientation orientation{};
Direction direction{};
};
} // namespace Cubed