modified starting sunhight + sunrise functions
This commit is contained in:
parent
4bfcc282a1
commit
251048bbd0
@ -13079,7 +13079,7 @@
|
||||
|
||||
<directionalLight>
|
||||
<xOffset>-1.0</xOffset>
|
||||
<yOffset>1.5</yOffset>
|
||||
<yOffset>-6</yOffset>
|
||||
<zOffset>1.0</zOffset>
|
||||
<rColour>1.0</rColour>
|
||||
<gColour>1.0</gColour>
|
||||
|
@ -13,9 +13,16 @@ function trigger(objectToChange)
|
||||
timeDiff = maxTimeDiff
|
||||
end
|
||||
timeDiff = timeDiff/maxTimeDiff
|
||||
local x = 1 - 0.3 * timeDiff
|
||||
local y = math.sqrt(timeDiff) * 1.0 - 0.1
|
||||
local z = 0.7 * timeDiff
|
||||
local x = 10
|
||||
local y = -18 + math.sqrt(timeDiff) * 29
|
||||
local z = -8 + timeDiff * 15
|
||||
level:setSunDirection(x,y,z)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
--local x = 0.7 + 0.3 * timeDiff
|
||||
--local y = math.sqrt(timeDiff) * 2.2 - 1.5
|
||||
--local z = -0.7 - 0.7 * timeDiff
|
||||
--start 1,-6,-2
|
||||
--ziel 10,10,10
|
||||
|
Loading…
Reference in New Issue
Block a user