|
|
@@ -1,4 +1,4 @@
|
|
|
--- Generated by: C:\src\anki\out\build\x64-Debug\Binaries\GltfImporter.exe sponza_crytek_7_pbr_3.0.gltf C:/src/anki/Samples/Sponza/Assets/ -rpath Assets -texrpath Assets -lod-count 2 -light-scale 0.0001839 -v
|
|
|
+-- Generated by: C:\src\anki\out\build\x64-Debug-VK\Binaries\GltfImporter.exe sponza_crytek_7_pbr_3.0.gltf C:/src/anki/Samples/Sponza/Assets/ -rpath Assets -texrpath Assets -lod-count 2 -light-scale 0.0001839 -v
|
|
|
local scene = getSceneGraph()
|
|
|
local events = getEventManager()
|
|
|
|
|
|
@@ -16,16 +16,6 @@ trf:setRotation(rot)
|
|
|
trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
|
|
|
node:setLocalTransform(trf)
|
|
|
|
|
|
-node = scene:newSceneNode("Sphere")
|
|
|
-node:newModelComponent():loadModelResource("Assets/Sphere_MTL_sphere_8df61cca01d9efcc.ankimdl")
|
|
|
-trf = Transform.new()
|
|
|
-trf:setOrigin(Vec4.new(0.718041, 1.838787, 0.000000, 0))
|
|
|
-rot = Mat3x4.new()
|
|
|
-rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
|
|
|
-trf:setRotation(rot)
|
|
|
-trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
|
|
|
-node:setLocalTransform(trf)
|
|
|
-
|
|
|
node = scene:newSceneNode("Cube.011")
|
|
|
comp = node:newGlobalIlluminationProbeComponent()
|
|
|
comp:setBoxVolumeSize(Vec3.new(48.094303, 25.484703, 21.568947))
|
|
|
@@ -2884,3 +2874,19 @@ rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, -0.376587, 0.926381
|
|
|
trf:setRotation(rot)
|
|
|
trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
|
|
|
node:setLocalTransform(trf)
|
|
|
+
|
|
|
+node = scene:newSceneNode("Spot")
|
|
|
+lcomp = node:newLightComponent()
|
|
|
+lcomp:setLightComponentType(LightComponentType.kSpot)
|
|
|
+lcomp:setDiffuseColor(Vec4.new(19.990450, 19.990450, 19.990450, 1))
|
|
|
+lcomp:setShadowEnabled(1)
|
|
|
+lcomp:setDistance(45.410000)
|
|
|
+lcomp:setOuterAngle(0.514791)
|
|
|
+lcomp:setInnerAngle(0.307609)
|
|
|
+trf = Transform.new()
|
|
|
+trf:setOrigin(Vec4.new(0.000000, 13.235932, -8.790560, 0))
|
|
|
+rot = Mat3x4.new()
|
|
|
+rot:setAll(0.383428, 0.288014, -0.877514, 0.000000, 0.922611, -0.076151, 0.378140, 0.000000, 0.042085, -0.954594, -0.294923, 0.000000)
|
|
|
+trf:setRotation(rot)
|
|
|
+trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
|
|
|
+node:setLocalTransform(trf)
|