瀏覽代碼

Cleanup wegl_gpgpu_water (#26436)

Nathan Bierema 2 年之前
父節點
當前提交
dbb030b7c8
共有 1 個文件被更改,包括 3 次插入7 次删除
  1. 3 7
      examples/webgl_gpgpu_water.html

+ 3 - 7
examples/webgl_gpgpu_water.html

@@ -414,14 +414,10 @@
 				material.lights = true;
 
 				// Material attributes from THREE.MeshPhongMaterial
-				material.color = new THREE.Color( materialColor );
-				material.specular = new THREE.Color( 0x111111 );
-				material.shininess = 50;
-
 				// Sets the uniforms with the material values
-				material.uniforms[ 'diffuse' ].value = material.color;
-				material.uniforms[ 'specular' ].value = material.specular;
-				material.uniforms[ 'shininess' ].value = Math.max( material.shininess, 1e-4 );
+				material.uniforms[ 'diffuse' ].value = new THREE.Color( materialColor );
+				material.uniforms[ 'specular' ].value = new THREE.Color( 0x111111 );
+				material.uniforms[ 'shininess' ].value = Math.max( 50, 1e-4 );
 				material.uniforms[ 'opacity' ].value = material.opacity;
 
 				// Defines