Add support for KHR_lights_punctual

This commit is contained in:
Edwin Jakobs
2020-05-26 09:05:34 +02:00
parent 124f2a4ac6
commit df818b9ff1
11 changed files with 204 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ fun main() = application {
}
}
val gltf = loadGltfFromFile(File("demo-data/gltf-models/box-animated/BoxAnimated.glb"))
val gltf = loadGltfFromFile(File("demo-data/gltf-models/oh-no-cubes-2.glb"))
val scene = Scene(SceneNode())
@@ -53,7 +53,7 @@ fun main() = application {
fov = 40.0
}
extend {
sceneData.animations[0].applyToTargets(seconds.mod_(4.0))
sceneData.animations[0].applyToTargets(seconds.mod_(sceneData.animations[0].duration))
drawer.clear(ColorRGBa.PINK)
renderer.draw(drawer, scene)
}