File tree Expand file tree Collapse file tree 2 files changed +12234
-13346
lines changed Expand file tree Collapse file tree 2 files changed +12234
-13346
lines changed Original file line number Diff line number Diff line change 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 ( ) ;
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 ] ) ,
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 ,
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
You can’t perform that action at this time.
0 commit comments