Skip to content

Commit

Permalink
Examples: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed May 26, 2022
1 parent 764cf0f commit b5ec276
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/webgl_loader_gltf_sheen.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - GLTFloader + sheen</title>
<title>three.js webgl - GLTFloader + Sheen</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link type="text/css" rel="stylesheet" href="main.css">
Expand Down
14 changes: 3 additions & 11 deletions examples/webgl_tonemapping.html
Expand Up @@ -12,7 +12,7 @@
<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> - Tone Mapping<br />
Battle Damaged Sci-fi Helmet by
<a href="https://sketchfab.com/theblueturtle_" target="_blank" rel="noopener">theblueturtle_</a><br />
<a href="https://hdrihaven.com/hdri/?h=royal_esplanade" target="_blank" rel="noopener">Royal Esplanade</a> by <a href="https://hdrihaven.com/" target="_blank" rel="noopener">HDRI Haven</a>
<a href="https://hdrihaven.com/hdri/?h=venice_sunset" target="_blank" rel="noopener">Venice Sunset</a> by <a href="https://hdrihaven.com/" target="_blank" rel="noopener">HDRI Haven</a>
</div>

<!-- Import maps polyfill -->
Expand Down Expand Up @@ -115,16 +115,8 @@

// model

gltf.scene.traverse( function ( child ) {

if ( child.isMesh ) {

mesh = child;
scene.add( mesh );

}

} );
mesh = gltf.scene.getObjectByName( 'node_damagedHelmet_-6514' );
scene.add( mesh );

render();

Expand Down

0 comments on commit b5ec276

Please sign in to comment.