mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-02 08:49:20 -05:00
Update updatestructures to have transform with translation, rotation and scale.
This commit is contained in:
@@ -36,10 +36,14 @@ struct InitializeData {
|
||||
|
||||
};
|
||||
|
||||
struct UpdateData {
|
||||
glm::dvec3 position;
|
||||
struct TransformData {
|
||||
glm::dvec3 translation;
|
||||
glm::dmat3 rotation;
|
||||
double scale;
|
||||
};
|
||||
|
||||
struct UpdateData {
|
||||
TransformData modelTransform;
|
||||
double time;
|
||||
bool isTimeJump;
|
||||
double delta;
|
||||
@@ -48,13 +52,11 @@ struct UpdateData {
|
||||
|
||||
struct RenderData {
|
||||
const Camera& camera;
|
||||
// psc position to be removed in favor of the double precision position
|
||||
// Now both are here due to dependencies of the psc position
|
||||
// psc position to be removed in favor of the double precision position defined in
|
||||
// the translation in transform.
|
||||
psc position;
|
||||
bool doPerformanceMeasurement;
|
||||
glm::dvec3 positionVec3;
|
||||
glm::dmat3 rotation;
|
||||
double scale;
|
||||
TransformData modelTransform;
|
||||
};
|
||||
|
||||
struct RaycasterTask {
|
||||
|
||||
Reference in New Issue
Block a user