Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit eb0dc05

Browse files
MortimerGorobluemarvin
authored andcommitted
Fix 180 equirect layer transform (#3666)
Fixes #3661
1 parent abf339e commit eb0dc05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/cpp/VRVideo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ struct VRVideo::State {
231231
vrb::TogglePtr create180LayerToggle(const VRLayerEquirectPtr& aLayer) {
232232
vrb::CreationContextPtr create = context.lock();
233233
vrb::TogglePtr result = vrb::Toggle::Create(create);
234-
vrb::Matrix rotation = vrb::Matrix::Rotation(vrb::Vector(0.0f, 1.0f, 0.0f), (float)M_PI * 0.5f);
234+
vrb::Matrix rotation = vrb::Matrix::Rotation(vrb::Vector(0.0f, 1.0f, 0.0f), -(float)M_PI * 0.5f);
235235
vrb::TransformPtr transform = vrb::Transform::Create(create);
236236
transform->AddNode(VRLayerNode::Create(create, aLayer));
237237
transform->SetTransform(rotation);

0 commit comments

Comments
 (0)