mirror of
https://github.com/bvanroll/watchos_glsl.git
synced 2025-08-29 12:02:41 +00:00
init
This commit is contained in:
29
watchos_glsl Watch App/ContentView.swift
Normal file
29
watchos_glsl Watch App/ContentView.swift
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// ContentView.swift
|
||||
// watchos_glsl Watch App
|
||||
//
|
||||
// Created by Beppe Vanrolleghem on 01/06/2024.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import SceneKit
|
||||
struct ContentView: View {
|
||||
var gameScene:SCNScene = SCNScene()
|
||||
var cameraNode:SCNNode = SCNNode()
|
||||
var shader:SCNTechnique = SCNTechnique(dictionary: ["program" : "./test.fsh"])!
|
||||
var targetCreationTime:TimeInterval = 0
|
||||
|
||||
var body: some View {
|
||||
VStack {
|
||||
SceneView(scene:gameScene, technique:shader)
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
|
||||
struct ContentView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
ContentView()
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user