mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Updated openGL demo app now that the Matrix3D class works the other (correct!) way around.
This commit is contained in:
parent
f8cffb5949
commit
063ec9c0d1
1 changed files with 3 additions and 4 deletions
|
|
@ -701,13 +701,12 @@ struct OpenGLDemoClasses
|
|||
|
||||
Matrix3D<float> getViewMatrix() const
|
||||
{
|
||||
Matrix3D<float> viewMatrix (Vector3D<float> (0.0f, 1.0f, -10.0f));
|
||||
|
||||
viewMatrix *= draggableOrientation.getRotationMatrix();
|
||||
Matrix3D<float> viewMatrix = draggableOrientation.getRotationMatrix()
|
||||
* Vector3D<float> (0.0f, 1.0f, -10.0f);
|
||||
|
||||
Matrix3D<float> rotationMatrix = viewMatrix.rotated (Vector3D<float> (rotation, rotation, -0.3f));
|
||||
|
||||
return viewMatrix * rotationMatrix;
|
||||
return rotationMatrix * viewMatrix;
|
||||
}
|
||||
|
||||
void setTexture (DemoTexture* t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue