-
Notifications
You must be signed in to change notification settings - Fork 63
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 #32 from fabio914/background-layer-chroma-key
Experiment: Transparency on the background layer
- Loading branch information
Showing
7 changed files
with
246 additions
and
72 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
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
24 changes: 24 additions & 0 deletions
24
RealityMixer/Capture/Model/MixedRealityConfiguration.swift
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,24 @@ | ||
import Foundation | ||
|
||
struct MixedRealityConfiguration { | ||
|
||
enum BackgroundVisibility { | ||
enum ChromaKey { | ||
case black | ||
case green | ||
case magenta | ||
} | ||
|
||
case visible | ||
case chromaKey(ChromaKey) | ||
case hidden | ||
} | ||
|
||
// Use magenta as the transparency color for the foreground plane | ||
let shouldUseMagentaAsTransparency: Bool | ||
|
||
let enableAudio: Bool | ||
let enableAutoFocus: Bool | ||
let shouldFlipOutput: Bool | ||
let backgroundVisibility: BackgroundVisibility | ||
} |
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
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
Oops, something went wrong.