瀏覽代碼

Fix initial material configuration

Josua Schmid 4 年之前
父節點
當前提交
df5cbb6f40
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      examples/webgl_materials_envmaps_hdr_nodes.html

+ 4 - 4
examples/webgl_materials_envmaps_hdr_nodes.html

@@ -101,16 +101,16 @@
 
 				let material = new THREE.MeshStandardMaterial();
 				material.color = new THREE.Color( 0xffffff );
-				material.roughness = params.metalness;
-				material.metalness = params.roguhness;
+				material.roughness = params.roughness;
+				material.metalness = params.metalness;
 
 				torusMesh = new THREE.Mesh( geometry, material );
 				scene.add( torusMesh );
 
 				material = new MeshStandardNodeMaterial();
 				material.color = new THREE.Color( 0xffffff );
-				material.roughness = params.metalness;
-				material.metalness = params.roguhness;
+				material.roughness = params.roughness;
+				material.metalness = params.metalness;
 
 				torusMeshNode = new THREE.Mesh( geometry, material );
 				scene.add( torusMeshNode );