equal
deleted
inserted
replaced
582 |
582 |
583 mViewMatrix = view; |
583 mViewMatrix = view; |
584 mProjMatrix = proj; |
584 mProjMatrix = proj; |
585 |
585 |
586 qreal mirrorPlaneY; |
586 qreal mirrorPlaneY; |
|
587 |
|
588 // with factor 0.375 mirroring plane moves to correct pos. In grid we want to draw |
|
589 // the reflections little below the bottom row. This value needs to be changed |
|
590 // if reflection's height factor changes, so this in not really robust. Currently |
|
591 // reflection's height is half from the image height. |
|
592 const qreal factor(0.375); |
587 if (mCoverflowMode) |
593 if (mCoverflowMode) |
588 { |
594 { |
589 mirrorPlaneY = -mImageSize3D.height()/2; |
595 mirrorPlaneY = -mImageSize3D.height()*factor; |
590 } |
596 } |
591 else // grid |
597 else // grid |
592 { |
598 { |
593 mirrorPlaneY = getRowPosY(mRowCount-1)-mImageSize3D.height()/2; |
599 // we want to add some space between the bottom row and the reflection. |
|
600 mirrorPlaneY = getRowPosY(mRowCount-1)-mImageSize3D.height()*(factor+0.025); |
594 } |
601 } |
595 |
602 |
596 mRenderer->setMirroringPlaneY(mirrorPlaneY); |
603 mRenderer->setMirroringPlaneY(mirrorPlaneY); |
597 } |
604 } |
598 |
605 |