Skip to content

Commit 19ce9f2

Browse files
committed
Improved webgl_loader_ctm_materials.
1 parent 547d234 commit 19ce9f2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

examples/webgl_loader_ctm_materials.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,19 @@
191191
mm.color.setHex( 0x000000 );
192192
mm.lightMap = m.map;
193193
mm.envMap = textureCube;
194-
mm.metalness = 0.9;
195-
mm.roughness = 0.2;
194+
mm.metalness = 0.5;
195+
mm.roughness = 0.3;
196+
197+
materials[ i ] = mm;
198+
199+
} else if ( m.name.indexOf( "tire_car" ) !== -1 ) {
200+
201+
var mm = new THREE.MeshStandardMaterial();
202+
203+
mm.color.setHex( 0x000000 );
204+
mm.lightMap = m.map;
205+
mm.metalness = 0.1;
206+
mm.roughness = 0.9;
196207

197208
materials[ i ] = mm;
198209

0 commit comments

Comments
 (0)