Skip to content

Commit

Permalink
Fix 180 equirect layer transform (#3666)
Browse files Browse the repository at this point in the history
Fixes #3661
  • Loading branch information
MortimerGoro authored and bluemarvin committed Jul 10, 2020
1 parent abf339e commit eb0dc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/cpp/VRVideo.cpp
Expand Up @@ -231,7 +231,7 @@ struct VRVideo::State {
vrb::TogglePtr create180LayerToggle(const VRLayerEquirectPtr& aLayer) {
vrb::CreationContextPtr create = context.lock();
vrb::TogglePtr result = vrb::Toggle::Create(create);
vrb::Matrix rotation = vrb::Matrix::Rotation(vrb::Vector(0.0f, 1.0f, 0.0f), (float)M_PI * 0.5f);
vrb::Matrix rotation = vrb::Matrix::Rotation(vrb::Vector(0.0f, 1.0f, 0.0f), -(float)M_PI * 0.5f);
vrb::TransformPtr transform = vrb::Transform::Create(create);
transform->AddNode(VRLayerNode::Create(create, aLayer));
transform->SetTransform(rotation);
Expand Down

0 comments on commit eb0dc05

Please sign in to comment.