Skip to content

Commit

Permalink
Example fixes2 (#6433)
Browse files Browse the repository at this point in the history
* initialize glm::quat fixes broken example.

* fix area light example
  • Loading branch information
ofTheo authored Nov 5, 2019
1 parent 177c1f4 commit 5f4bb35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/gl/areaLightExample/src/ofApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void ofApp::setup(){


camera.setFarClip(20000);
camera.move(0,0,3000);
camera.move(0,0,1000);
}

//--------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion examples/gl/pixelBufferExample/src/ofApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void ofApp::update(){
float zAngleRad = ofDegToRad(45.0);

// Construct a quaternion.
glm::quat quat;
glm::quat quat(1,0,0,0);

quat *= glm::angleAxis(xAngleRad, glm::vec3(1, 0, 0));
quat *= glm::angleAxis(yAngleRad, glm::vec3(0, 1, 0));
Expand Down

0 comments on commit 5f4bb35

Please sign in to comment.