Skip to content

Commit dd1d166

Browse files
authored
Merge pull request #13818 from Mugen87/dev4
Examples: Combine points examples.
2 parents 39fcbc7 + e998941 commit dd1d166

File tree

5 files changed

+43
-415
lines changed

5 files changed

+43
-415
lines changed

examples/files.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,7 @@ var files = {
216216
"webgl_physics_terrain",
217217
"webgl_physics_volume",
218218
"webgl_points_billboards",
219-
"webgl_points_billboards_colors",
220219
"webgl_points_dynamic",
221-
"webgl_points_random",
222220
"webgl_points_sprites",
223221
"webgl_postprocessing",
224222
"webgl_postprocessing_advanced",

examples/webgl_points_billboards.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#info {
2424
color:#fff;
2525
position: absolute;
26-
top: 0px; width: 100%;
26+
top: 0px;
27+
width: 100%;
2728
padding: 5px;
28-
z-index:100;
2929
}
3030

3131
</style>
@@ -40,6 +40,7 @@
4040

4141
<script src="js/Detector.js"></script>
4242
<script src="js/libs/stats.min.js"></script>
43+
<script src="js/libs/dat.gui.min.js"></script>
4344

4445
<script>
4546

@@ -99,6 +100,18 @@
99100

100101
//
101102

103+
var gui = new dat.GUI();
104+
105+
gui.add( material, 'sizeAttenuation' ).onChange( function() {
106+
107+
material.needsUpdate = true;
108+
109+
} );
110+
111+
gui.open();
112+
113+
//
114+
102115
document.addEventListener( 'mousemove', onDocumentMouseMove, false );
103116
document.addEventListener( 'touchstart', onDocumentTouchStart, false );
104117
document.addEventListener( 'touchmove', onDocumentTouchMove, false );

examples/webgl_points_billboards_colors.html

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)