mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
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:
@@ -10,4 +10,5 @@ struct WalkPose {
|
||||
// for sound play
|
||||
float moving_time = 0.0f;
|
||||
};
|
||||
|
||||
} // namespace Cubed
|
||||
@@ -21,4 +21,10 @@ struct Transform {
|
||||
Direction direction{};
|
||||
};
|
||||
|
||||
struct RenderTransform {
|
||||
Position position{};
|
||||
Orientation orientation{};
|
||||
Direction direction{};
|
||||
};
|
||||
|
||||
} // namespace Cubed
|
||||
Reference in New Issue
Block a user