|
|
@@ -1,4 +1,4 @@
|
|
|
--- Generated by: /home/godlike/src/anki/buildd/Bin/GltfImporter CornellBox.gltf . -rpath Assets -texrpath Assets
|
|
|
+-- Generated by: C:\Users\godli\src\anki\out\build\x64-Debug\Bin\GltfImporter.exe CornellBox.gltf .. -rpath Assets -texrpath Assets -v
|
|
|
local scene = getSceneGraph()
|
|
|
local events = getEventManager()
|
|
|
|
|
|
@@ -82,7 +82,7 @@ trf:setRotation(rot)
|
|
|
trf:setScale(5.000000)
|
|
|
node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
|
|
|
|
|
|
-node = scene:newPerspectiveCameraNode("Camera_Orientation")
|
|
|
+node = scene:newPerspectiveCameraNode("Camera")
|
|
|
scene:setActiveCameraNode(node:getSceneNodeBase())
|
|
|
frustumc = node:getSceneNodeBase():getFrustumComponent()
|
|
|
frustumc:setPerspective(0.100000, 500.000000, getMainRenderer():getAspectRatio() * 1.024779, 1.024779)
|
|
|
@@ -91,12 +91,12 @@ frustumc:setEffectiveShadowDistance(100.000000)
|
|
|
trf = Transform.new()
|
|
|
trf:setOrigin(Vec4.new(0.217066, 6.668793, 17.325689, 0))
|
|
|
rot = Mat3x4.new()
|
|
|
-rot:setAll(0.999854, -0.000334, 0.017085, 0.000000, -0.001690, 0.992972, 0.118340, 0.000000, -0.017005, -0.118352, 0.992826, 0.000000)
|
|
|
+rot:setAll(0.999854, -0.000334, 0.017085, 0.000000, -0.001690, 0.992972, 0.118341, 0.000000, -0.017005, -0.118352, 0.992826, 0.000000)
|
|
|
trf:setRotation(rot)
|
|
|
trf:setScale(1.000000)
|
|
|
node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
|
|
|
|
|
|
-node = scene:newPointLightNode("Point_Orientation")
|
|
|
+node = scene:newPointLightNode("Point")
|
|
|
lcomp = node:getSceneNodeBase():getLightComponent()
|
|
|
lcomp:setDiffuseColor(Vec4.new(10.000000, 10.000000, 10.000000, 1))
|
|
|
lcomp:setShadowEnabled(1)
|
|
|
@@ -104,7 +104,7 @@ lcomp:setRadius(20.000000)
|
|
|
trf = Transform.new()
|
|
|
trf:setOrigin(Vec4.new(0.000000, 8.913514, 0.000000, 0))
|
|
|
rot = Mat3x4.new()
|
|
|
-rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000)
|
|
|
+rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, 0.000000, -1.000000, -0.000000, 0.000000)
|
|
|
trf:setRotation(rot)
|
|
|
trf:setScale(1.000000)
|
|
|
node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
|