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

Commit

Permalink
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/oculusvr/cpp/OculusVRLayers.cpp
Original file line number Diff line number Diff line change
@@ -33,6 +33,7 @@ OculusLayerQuad::Init(JNIEnv * aEnv, vrb::RenderContextPtr& aContext) {

void
OculusLayerQuad::Update(const ovrTracking2& aTracking, ovrTextureSwapChain* aClearSwapChain) {
OculusLayerSurface<VRLayerQuadPtr, ovrLayerProjection2>::Update(aTracking, aClearSwapChain);
const float w = layer->GetWorldWidth();
const float h = layer->GetWorldHeight();

@@ -83,6 +84,7 @@ OculusLayerCylinder::Init(JNIEnv * aEnv, vrb::RenderContextPtr& aContext) {

void
OculusLayerCylinder::Update(const ovrTracking2& aTracking, ovrTextureSwapChain* aClearSwapChain) {
OculusLayerSurface<VRLayerCylinderPtr, ovrLayerCylinder2>::Update(aTracking, aClearSwapChain);
ovrLayer.HeadPose = aTracking.HeadPose;
ovrLayer.Header.SrcBlend = VRAPI_FRAME_LAYER_BLEND_ONE;
ovrLayer.Header.DstBlend = VRAPI_FRAME_LAYER_BLEND_ONE_MINUS_SRC_ALPHA;

0 comments on commit 2e7e67f

Please sign in to comment.