Update updatestructures to have transform with translation, rotation and scale.

This commit is contained in:
Kalle Bladin
2016-08-18 16:59:51 -04:00
parent ae1f8e457b
commit 628f8b479f
10 changed files with 37 additions and 44 deletions

View File

@@ -162,7 +162,7 @@ void RenderableTrail::render(const RenderData& data) {
//setPscUniforms(*_programObject.get(), data.camera, data.position);
// Calculate variables to be used as uniform variables in shader
glm::dvec3 bodyPosition = data.positionVec3;
glm::dvec3 bodyPosition = data.modelTransform.translation;
// Model transform and view transform needs to be in double precision
glm::dmat4 modelTransform =