Skip to content

Commit 64e5b66

Browse files
committed
support transparent scenes
1 parent 923aca9 commit 64e5b66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DDDKit/Classes/DDDView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ open class DDDViewController: UIViewController {
5353
print("could not set eagl context")
5454
}
5555
eagllayer = sceneView.layer as! CAEAGLLayer
56-
eagllayer.isOpaque = true
56+
eagllayer.isOpaque = false
5757

5858
initializeGL()
5959
scene = DDDScene()
@@ -134,7 +134,7 @@ open class DDDViewController: UIViewController {
134134
}
135135

136136
private func computeRendering() {
137-
glClearColor(0, 0, 0, 1.0)
137+
glClearColor(0, 0, 0, 0)
138138
glClear(GLbitfield(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT))
139139
glEnable(GLenum(GL_DEPTH_TEST))
140140
glViewport(0, 0, GLsizei(self.view.frame.size.width), GLsizei(self.view.frame.size.height))

0 commit comments

Comments
 (0)