Skip to content

Commit

Permalink
javascript example: setDecoderPath() for draco code
Browse files Browse the repository at this point in the history
  • Loading branch information
jokester committed Aug 31, 2022
1 parent c4c0027 commit 636e031
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions javascript/example/webgl_loader_draco.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
light.position.set( - 1, 1, 1 );
scene.add( light );

dracoLoader.setDecoderPath( '/javascript/' );
dracoLoader.load( 'models/bunny.drc', function ( geometry ) {

geometry.computeVertexNormals();
Expand Down

0 comments on commit 636e031

Please sign in to comment.