Skip to content

Commit

Permalink
Update to latest version of three.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
aemkei committed Oct 24, 2014
1 parent faa13ba commit 0c1d44c
Show file tree
Hide file tree
Showing 2 changed files with 12,234 additions and 13,346 deletions.
10 changes: 5 additions & 5 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

// if you add renderertype:'Canvas' to the options for ThreejsLayer, you can force the usage of CanvasRenderer
new ThreejsLayer({ map: map }, function(layer){

if (layer.renderertype=='Canvas' || !Detector.webgl) {
texture = new THREE.Texture(generateSprite());
particles = new THREE.Object3D();
Expand All @@ -48,8 +48,8 @@
depthTest: false,
transparent: true
});


photos.forEach(function (photo) {
var particle = new THREE.Sprite(material);
var location = new google.maps.LatLng(photo[0], photo[1]),
Expand All @@ -74,7 +74,7 @@

texture.needsUpdate = true;

material = new THREE.ParticleBasicMaterial({
material = new THREE.PointCloudMaterial({
size: 20,
map: texture,
opacity: 0.3,
Expand All @@ -83,7 +83,7 @@
transparent: true
});

particles = new THREE.ParticleSystem( geometry, material );
particles = new THREE.PointCloud( geometry, material );
}
layer.add( particles );

Expand Down
Loading

0 comments on commit 0c1d44c

Please sign in to comment.