@@ -311,18 +311,18 @@ package
311311
312312 sunMaterial = new TextureMaterial(Cast. bitmapTexture(Flare10));
313313 sunMaterial. blendMode = BlendMode . ADD ;
314-
315- groundMaterial = new TextureMaterial(Cast. bitmapTexture(EarthDiffuse));
316- // groundMaterial.specularMethod = specular;
317- // groundMaterial.specularMap = new BitmapTexture(specBitmap);
318- // groundMaterial.normalMap = Cast.bitmapTexture(EarthNormals);
319- // groundMaterial.ambientTexture = Cast.bitmapTexture(EarthNight);
320- groundMaterial. lightPicker = lightPicker;
321- // groundMaterial.gloss = 5;
322- // groundMaterial.specular = 1;
323- // groundMaterial.ambientColor = 0xFFFFFF;
324- groundMaterial. ambient = 0 ;
325-
314+
315+ groundMaterial = new TextureMaterial(Cast. bitmapTexture(EarthDiffuse));
316+ groundMaterial. specularMethod = specular;
317+ groundMaterial. specularMap = new BitmapTexture(specBitmap);
318+ groundMaterial. normalMap = Cast. bitmapTexture(EarthNormals);
319+ groundMaterial. ambientTexture = Cast. bitmapTexture(EarthNight);
320+ groundMaterial. lightPicker = lightPicker;
321+ groundMaterial. gloss = 5 ;
322+ groundMaterial. specular = 1 ;
323+ groundMaterial. ambientColor = 0xFFFFFF ;
324+ groundMaterial. ambient = 1 ;
325+
326326 var skyBitmap: BitmapData = new BitmapData (2048 , 1024 , true , 0xFFFFFFFF );
327327 skyBitmap. copyChannel (Cast. bitmapData (SkyDiffuse), skyBitmap. rect , new Point (), BitmapDataChannel . RED , BitmapDataChannel . ALPHA );
328328
@@ -397,12 +397,10 @@ package
397397 earth = new Mesh(new SphereGeometry(200 , 200 , 100 ), groundMaterial);
398398
399399 clouds = new Mesh(new SphereGeometry(202 , 200 , 100 ), cloudMaterial);
400- clouds. visible = false ;
401-
400+
402401 atmosphere = new Mesh(new SphereGeometry(210 , 200 , 100 ), atmosphereMaterial);
403402 atmosphere. scaleX = - 1 ;
404- atmosphere. visible = false ;
405-
403+
406404 tiltContainer = new ObjectContainer3D();
407405 tiltContainer. rotationX = - 23 ;
408406 tiltContainer. addChild (earth);
0 commit comments