Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at https://doku.lrz.de/display/PUBLIC/GitLab and make sure that your projects conform to the requirements.

Commit 2b3ebb02 authored by schultezub's avatar schultezub
Browse files

two small fixes

git-svn-id: https://camplinux.in.tum.de/svn/campvis/trunk@296 bb408c1c-ae56-11e1-83d9-df6b3e0c105e
parent 8c8155d3
......@@ -59,7 +59,7 @@ namespace TUMVis {
_textureToWolrdTransformation = tgt::mat4::createTranslation(_offset) * tgt::mat4::createScale(_voxelSize * _size);
}
const tgt::mat4 ImageMappingInformation::getTextureToWorldMatrix() const {
const tgt::mat4& ImageMappingInformation::getTextureToWorldMatrix() const {
return _textureToWolrdTransformation;
}
......
......@@ -72,7 +72,7 @@ namespace TUMVis {
* Gets the transformation matrix from texture to world coordinates.
* \return _textureToWolrdTransformation
*/
const tgt::mat4 getTextureToWorldMatrix() const;
const tgt::mat4& getTextureToWorldMatrix() const;
/**
* Get the real world value mapping.
......
......@@ -72,7 +72,9 @@ namespace TUMVis {
// assure that mirror is faced to camera
if (tgt::sign(tgt::dot(cam.getLook(), n)) == 1)
n *= -1.f;
_mirrorNormal.setValue(n);
// TODO: the implicit GUI updates randomly crashes the applictation...
//_mirrorNormal.setValue(n);
std::vector<tgt::vec3> vertices;
......
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