-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from yale-swe/eric
updated home and messages
- Loading branch information
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// Bubble.swift | ||
// here | ||
// | ||
// Created by Eric Wang on 10/28/23. | ||
// | ||
|
||
import Foundation | ||
import ARKit | ||
|
||
class Bubble: SCNNode { | ||
|
||
override init() { | ||
super.init() | ||
let bubble = SCNPlane(width: 0.25, height: 0.25) | ||
let material = SCNMaterial() | ||
material.diffuse.contents = #imageLiteral(resourceName: "bubbleText") | ||
material.isDoubleSided = true | ||
material.writesToDepthBuffer = false | ||
material.blendMode = .screen | ||
bubble.materials = [material] | ||
self.geometry = bubble | ||
} | ||
|
||
required init?(coder aDecoder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters