-- Generated by: C:\src\anki\out\build\x64-Release-VK\Binaries\GltfImporter.exe CornellBox.gltf .. -rpath Assets -texrpath Assets -v -j 0 -light-scale 0.01839878467931728
local scene = getSceneGraph()
local events = getEventManager()

node = scene:newSceneNode("Mesh_0")
node:newModelComponent():loadModelResource("Assets/Mesh_0_backWall_24a9b01d8fc47286.ankimdl")
trf = Transform.new()
trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
rot = Mat3.new()
rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
trf:setRotation(rot)
trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
node:setLocalTransform(trf)

node = scene:newSceneNode("Mesh_1")
node:newModelComponent():loadModelResource("Assets/Mesh_1_ceiling_3aa8abc0da9fdec8.ankimdl")
trf = Transform.new()
trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
rot = Mat3.new()
rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
trf:setRotation(rot)
trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
node:setLocalTransform(trf)

node = scene:newSceneNode("Mesh_2")
node:newModelComponent():loadModelResource("Assets/Mesh_2_floor_cc46c84f817f093a.ankimdl")
trf = Transform.new()
trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
rot = Mat3.new()
rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
trf:setRotation(rot)
trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
node:setLocalTransform(trf)

node = scene:newSceneNode("Mesh_3")
node:newModelComponent():loadModelResource("Assets/Mesh_3_leftWall_acf66dd2ebcb73e6.ankimdl")
trf = Transform.new()
trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
rot = Mat3.new()
rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
trf:setRotation(rot)
trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
node:setLocalTransform(trf)

node = scene:newSceneNode("Mesh_4")
node:newModelComponent():loadModelResource("Assets/Mesh_4_light_82ddb9b3263c8f6e.ankimdl")
trf = Transform.new()
trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
rot = Mat3.new()
rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
trf:setRotation(rot)
trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
node:setLocalTransform(trf)

node = scene:newSceneNode("Mesh_5")
node:newModelComponent():loadModelResource("Assets/Mesh_5_rightWall_46f15190068c514a.ankimdl")
trf = Transform.new()
trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
rot = Mat3.new()
rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
trf:setRotation(rot)
trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
node:setLocalTransform(trf)

node = scene:newSceneNode("Mesh_7")
node:newModelComponent():loadModelResource("Assets/Mesh_7.001_tallBox_287bd3c185e6905a.ankimdl")
trf = Transform.new()
trf:setOrigin(Vec3.new(-1.675000, 3.600000, -1.450001))
rot = Mat3.new()
rot:setAll(0.958636, 0.000000, 0.284634, 0.000000, 1.000000, 0.000000, -0.284634, 0.000000, 0.958636)
trf:setRotation(rot)
trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
node:setLocalTransform(trf)

node = scene:newSceneNode("Mesh_6")
node:newModelComponent():loadModelResource("Assets/Mesh_6.001_shortBox_4122029d89b53875.ankimdl")
trf = Transform.new()
trf:setOrigin(Vec3.new(1.637500, 1.800000, 1.862499))
rot = Mat3.new()
rot:setAll(0.966822, 0.000000, -0.255450, 0.000000, 1.000000, 0.000000, 0.255450, 0.000000, 0.966822)
trf:setRotation(rot)
trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
node:setLocalTransform(trf)

node = scene:newSceneNode("Camera")
scene:setActiveCameraNode(node)
comp = node:newCameraComponent()
comp:setPerspective(0.100000, 500.000000, getRenderer():getAspectRatio() * 1.024779, 1.024779)
trf = Transform.new()
trf:setOrigin(Vec3.new(0.217066, 6.668793, 17.325689))
rot = Mat3.new()
rot:setAll(0.999854, -0.000334, 0.017085, -0.001690, 0.992972, 0.118341, -0.017005, -0.118352, 0.992826)
trf:setRotation(rot)
trf:setScale(Vec3.new(1.000000, 1.000000, 1.000000))
node:setLocalTransform(trf)

node = scene:newSceneNode("Point")
lcomp = node:newLightComponent()
lcomp:setLightComponentType(LightComponentType.kPoint)
lcomp:setDiffuseColor(Vec4.new(10.000000, 10.000000, 10.000000, 1))
lcomp:setShadowEnabled(1)
lcomp:setRadius(20.000000)
trf = Transform.new()
trf:setOrigin(Vec3.new(0.000000, 8.913514, 0.000000))
rot = Mat3.new()
rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
trf:setRotation(rot)
trf:setScale(Vec3.new(1.000000, 1.000000, 1.000000))
node:setLocalTransform(trf)

node = scene:newSceneNode("Cube.011")
comp = node:newGlobalIlluminationProbeComponent()
trf = Transform.new()
trf:setOrigin(Vec3.new(-0.064907, 4.847455, -0.144611))
rot = Mat3.new()
rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000)
trf:setRotation(rot)
trf:setScale(Vec3.new(5.912430, 5.785918, 5.520432))
node:setLocalTransform(trf)
