Графические конвейеры для вокселей и нод

This commit is contained in:
2025-02-13 22:22:10 +06:00
parent a27f055af8
commit 8c13938b06
24 changed files with 1239 additions and 65 deletions

View File

@@ -9,6 +9,26 @@
namespace LV::Client {
struct GlobalTime {
uint32_t Seconds : 22, Sub : 10;
GlobalTime() = default;
GlobalTime(double gTime) {
Seconds = int(gTime);
Sub = (gTime-int(gTime))*1024;
}
GlobalTime& operator=(double gTime) {
Seconds = int(gTime);
Sub = (gTime-int(gTime))*1024;
return *this;
}
operator double() const {
return double(Seconds) + double(Sub)/1024.;
}
};
struct VoxelCube {
DefVoxelId_c VoxelId;
Pos::Local256 Left, Right;
@@ -129,7 +149,7 @@ public:
virtual ~IServerSession();
virtual void atFreeDrawTime() = 0;
virtual void atFreeDrawTime(GlobalTime gTime, float dTime) = 0;
};