Skip to content

Commit 0c1d44c

Browse files
committed
Update to latest version of three.js.
1 parent faa13ba commit 0c1d44c

File tree

2 files changed

+12234
-13346
lines changed

2 files changed

+12234
-13346
lines changed

examples/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
// if you add renderertype:'Canvas' to the options for ThreejsLayer, you can force the usage of CanvasRenderer
3838
new ThreejsLayer({ map: map }, function(layer){
39-
39+
4040
if (layer.renderertype=='Canvas' || !Detector.webgl) {
4141
texture = new THREE.Texture(generateSprite());
4242
particles = new THREE.Object3D();
@@ -48,8 +48,8 @@
4848
depthTest: false,
4949
transparent: true
5050
});
51-
52-
51+
52+
5353
photos.forEach(function (photo) {
5454
var particle = new THREE.Sprite(material);
5555
var location = new google.maps.LatLng(photo[0], photo[1]),
@@ -74,7 +74,7 @@
7474

7575
texture.needsUpdate = true;
7676

77-
material = new THREE.ParticleBasicMaterial({
77+
material = new THREE.PointCloudMaterial({
7878
size: 20,
7979
map: texture,
8080
opacity: 0.3,
@@ -83,7 +83,7 @@
8383
transparent: true
8484
});
8585

86-
particles = new THREE.ParticleSystem( geometry, material );
86+
particles = new THREE.PointCloud( geometry, material );
8787
}
8888
layer.add( particles );
8989

0 commit comments

Comments
 (0)