Skip to content

Commit 57c3b4a

Browse files
committed
restored globe demo
1 parent 20c7438 commit 57c3b4a

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

src/Intermediate_Globe.as

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -312,18 +312,18 @@ package
312312

313313
sunMaterial = new TextureMaterial(Cast.bitmapTexture(Flare10));
314314
sunMaterial.blendMode = BlendMode.ADD;
315-
316-
groundMaterial = new TextureMaterial(Cast.bitmapTexture(EarthDiffuse));
317-
// groundMaterial.specularMethod = specular;
318-
// groundMaterial.specularMap = new BitmapTexture(specBitmap);
319-
// groundMaterial.normalMap = Cast.bitmapTexture(EarthNormals);
320-
// groundMaterial.ambientTexture = Cast.bitmapTexture(EarthNight);
321-
groundMaterial.lightPicker = lightPicker;
322-
// groundMaterial.gloss = 5;
323-
// groundMaterial.specular = 1;
324-
// groundMaterial.ambientColor = 0xFFFFFF;
325-
groundMaterial.ambient = 0;
326-
315+
316+
groundMaterial = new TextureMaterial(Cast.bitmapTexture(EarthDiffuse));
317+
groundMaterial.specularMethod = specular;
318+
groundMaterial.specularMap = new BitmapTexture(specBitmap);
319+
groundMaterial.normalMap = Cast.bitmapTexture(EarthNormals);
320+
groundMaterial.ambientTexture = Cast.bitmapTexture(EarthNight);
321+
groundMaterial.lightPicker = lightPicker;
322+
groundMaterial.gloss = 5;
323+
groundMaterial.specular = 1;
324+
groundMaterial.ambientColor = 0xFFFFFF;
325+
groundMaterial.ambient = 1;
326+
327327
var skyBitmap:BitmapData = new BitmapData(2048, 1024, true, 0xFFFFFFFF);
328328
skyBitmap.copyChannel(Cast.bitmapData(SkyDiffuse), skyBitmap.rect, new Point(), BitmapDataChannel.RED, BitmapDataChannel.ALPHA);
329329

@@ -392,12 +392,10 @@ package
392392
earth = new Mesh(new SphereGeometry(200, 200, 100), groundMaterial);
393393

394394
clouds = new Mesh(new SphereGeometry(202, 200, 100), cloudMaterial);
395-
clouds.visible = false;
396-
395+
397396
atmosphere = new Mesh(new SphereGeometry(210, 200, 100), atmosphereMaterial);
398397
atmosphere.scaleX = -1;
399-
atmosphere.visible = false;
400-
398+
401399
tiltContainer = new ObjectContainer3D();
402400
tiltContainer.rotationX = -23;
403401
tiltContainer.addChild(earth);

0 commit comments

Comments
 (0)