Changeset 813
- Timestamp:
- 01/21/10 00:20:06 (7 weeks ago)
- Files:
-
- 1 modified
-
trunk/example/lua/main.lua (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/example/lua/main.lua
r812 r813 73 73 ------------------------------ 74 74 -- CaduneTree 75 76 -- generate Seed, save this if you want to generate this Tree again 75 77 local p = CreateCaduneTreeParameters() 76 78 p:SetNumLeaves(5) … … 80 82 --p:SetLeafMaterial("Leaves/Orange") 81 83 p:SetLeafMaterial("Leaves/Ivylite") 82 84 83 85 local s = CreateCaduneTreeStem(p) 84 86 s:Grow() … … 86 88 local gfx_leav = s:CreateLeaves() 87 89 88 gfx_stem:SetPosition(0,- 6,23)89 gfx_leav:SetPosition(0,- 6,23)90 gfx_stem:SetPosition(0,-5.6,23) 91 gfx_leav:SetPosition(0,-5.6,23) 90 92 91 93 ------------------------------ … … 104 106 gCaelumSystem:SetSceneFogDensityMultiplier(0.0015) 105 107 gCaelumSystem:SetManageAmbientLight(true) 108 109 -- Sunrise with visible moon. 110 local cl = gCaelumSystem:GetUniversalClock() 111 cl:SetGregorianDateTime(2007, 4, 9, 9, 33, 10) 112 cl:SetTimeScale(2500) 106 113 107 114 --~ local sun = gCaelumSystem:GetSun() … … 132 139 --~ local prec = gCaelumSystem:GetPrecipitationController() 133 140 --~ if prec then 134 print("PREC") 135 --~ --prec:SetPresetType(1) 136 --~ end 137 138 -- Sunrise with visible moon. 139 local cl = gCaelumSystem:GetUniversalClock() 140 cl:SetGregorianDateTime(2007, 4, 9, 9, 33, 10) 141 cl:SetTimeScale(2500) 141 --~ print("PREC") 142 --~ prec:SetPresetType(1) 143 --~ end 142 144 143 145 ------------------------------ … … 188 190 ------------------------------ 189 191 192 --only tests 190 193 gAmbientLight = {r=0.2,g=0.2,b=0.2} 191 194 Client_SetAmbientLight(gAmbientLight.r, gAmbientLight.g, gAmbientLight.b, 1) 192 193 195 local mgr = GetSceneManager() 194 196 local light = mgr:createLight("LichtName")
