Slide 15
Slide 15 text
GLTFܕ
public struct GLTF: Codable {
let extensionsUsed: [String]?
let extensionsRequired: [String]?
let accessors: [Accessor]?
let animations: [Animation]?
let asset: Asset
let buffers: [Buffer]?
let bufferViews: [BufferView]?
let cameras: [Camera]?
let images: [Image]?
let materials: [Material]?
let meshes: [Mesh]?
let nodes: [Node]?
let samplers: [Sampler]?
let _scene: Int?
var scene: Int { return _scene ?? 0 }
let scenes: [Scene]?
let skins: [Skin]?
let textures: [Texture]?
let extensions: Extension?
let extras: Extras?
private enum CodingKeys: String, CodingKey {
case extensionsUsed
case extensionsRequired
case accessors
case animations
case asset
case buffers
case bufferViews
case cameras
case images
case materials
case meshes
case nodes
case samplers
case _scene = "scene"
case scenes
case skins
case textures
case extensions
case extras
}
}
εϥΠυͰհ͕͍͠ͷͰ
GitHubͰݟͯͶ
IUUQTHJUIVCDPNUBUUO73.,JUCMPCNBTUFS4PVSDFT73.,JU73.(-5'TXJGU