Skip to content

Commit

Permalink
enable transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
kwahoo2 committed Mar 26, 2024
1 parent e6bb16d commit 7339c48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commonXR.py
Expand Up @@ -928,6 +928,8 @@ def paintGL(self):
)
w, h = self.render_target_size
# "render" to the swapchain image
GL.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA)
GL.glEnable(GL.GL_BLEND)
GL.glEnable(GL.GL_SCISSOR_TEST)
GL.glScissor(0, 0, w // 2, h)
self.vpReg.setViewportPixels(0, 0, w // 2, h)
Expand Down

0 comments on commit 7339c48

Please sign in to comment.