소스 검색

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