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 36
36
37
37
// if you add renderertype:'Canvas' to the options for ThreejsLayer, you can force the usage of CanvasRenderer
38
38
new ThreejsLayer ( { map : map } , function ( layer ) {
39
-
39
+
40
40
if ( layer . renderertype == 'Canvas' || ! Detector . webgl ) {
41
41
texture = new THREE . Texture ( generateSprite ( ) ) ;
42
42
particles = new THREE . Object3D ( ) ;
48
48
depthTest : false ,
49
49
transparent : true
50
50
} ) ;
51
-
52
-
51
+
52
+
53
53
photos . forEach ( function ( photo ) {
54
54
var particle = new THREE . Sprite ( material ) ;
55
55
var location = new google . maps . LatLng ( photo [ 0 ] , photo [ 1 ] ) ,
74
74
75
75
texture . needsUpdate = true ;
76
76
77
- material = new THREE . ParticleBasicMaterial ( {
77
+ material = new THREE . PointCloudMaterial ( {
78
78
size : 20 ,
79
79
map : texture ,
80
80
opacity : 0.3 ,
83
83
transparent : true
84
84
} ) ;
85
85
86
- particles = new THREE . ParticleSystem ( geometry , material ) ;
86
+ particles = new THREE . PointCloud ( geometry , material ) ;
87
87
}
88
88
layer . add ( particles ) ;
89
89
You can’t perform that action at this time.
0 commit comments