Skip to content

Commit

Permalink
Examples: Simplified webgl_nodes_loader_gltf_sheen.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Oct 27, 2022
1 parent b7afe62 commit ddaf9ea
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Binary file modified examples/screenshots/webgl_nodes_loader_gltf_sheen.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions examples/webgl_nodes_loader_gltf_sheen.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,6 @@

scene.add( gltf.scene );

const object = gltf.scene.getObjectByName( 'SheenChair_fabric' );

// Convert to NodeMaterial
const material = NodeMaterial.fromMaterial( object.material );

const checkerNode = checker( mul( uv(), 5 ) );

material.sheenNode = mix( color( 0x00ffff ), color( 0xffff00 ), checkerNode );
material.sheenRoughnessNode = checkerNode;

object.material = material;

} );

renderer = new THREE.WebGLRenderer( { antialias: true } );
Expand Down

2 comments on commit ddaf9ea

@optimus007
Copy link

@optimus007 optimus007 commented on ddaf9ea Feb 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this commit correct ? all the node stuff is deleted and the example just contains "nodeFrame.update();" in the render loop

related forum post https://discourse.threejs.org/t/nodes-examples-for-gltf-models-in-three-js-what-does-it-do/47787/2

i'll report an issue if required

@mrdoob
Copy link
Owner Author

@mrdoob mrdoob commented on ddaf9ea Feb 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted the change last week: 3f0b691

Please sign in to comment.