Skip to content

Commit 55af39b

Browse files
authored
Merge pull request #14788 from Mugen87/dev17
Examples: Added BufferGeometry version of QRCode model
2 parents 7152be6 + fa66eae commit 55af39b

File tree

5 files changed

+4
-263
lines changed

5 files changed

+4
-263
lines changed

examples/files.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ var files = {
354354
"misc_fps",
355355
"misc_lights_test",
356356
"misc_lookat",
357-
"misc_ubiquity_test",
358357
"misc_ubiquity_test2",
359358
"misc_uv_tests"
360359
],

examples/misc_ubiquity_test.html

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

examples/models/json/QRCode.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/models/json/QRCode_buffergeometry.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

examples/svg_sandbox.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939

4040
// QRCODE
4141

42-
var loader = new THREE.JSONLoader();
43-
loader.load( 'models/json/QRCode.json', function ( geometry ) {
42+
var loader = new THREE.BufferGeometryLoader();
43+
loader.load( 'models/json/QRCode_buffergeometry.json', function ( geometry ) {
4444

45-
mesh = new THREE.Mesh( geometry, new THREE.MeshLambertMaterial( { /*emissive: 0xff0000,*/ vertexColors: THREE.FaceColors } ) );
45+
mesh = new THREE.Mesh( geometry, new THREE.MeshLambertMaterial( { vertexColors: THREE.VertexColors } ) );
4646
mesh.scale.x = mesh.scale.y = mesh.scale.z = 2;
4747
scene.add( mesh );
4848

0 commit comments

Comments
 (0)