Commit c88c7a2f by reichenbach

[FIX] forgot to calculate the inverse

parent 5b11d645
......@@ -68,7 +68,7 @@ WDataTexture3D::WDataTexture3D( boost::shared_ptr< WValueSetBase > valueSet, boo
WMatrix4d const m = grid->getTransform(); // implicit cast
Eigen::Matrix4d em = m;
transformation()->set( WMatrix4d( em ) * scale * offset );
transformation()->set( WMatrix4d( em.inverse() ) * scale * offset );
// set the size
WGETexture3D::initTextureSize( this, grid->getNbCoordsX(), grid->getNbCoordsY(), grid->getNbCoordsZ() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment