2
0
Mr.doob 5 жил өмнө
parent
commit
dc7336dbd2

+ 2 - 2
examples/jsm/textures/FlakeTexture.js → examples/jsm/textures/FlakesTexture.js

@@ -2,7 +2,7 @@
  * @author mr.doob / http://mrdoob.com/
  */
 
-class FlakeTexture {
+class FlakesTexture {
 
 	constructor( width = 512, height = 512 ) {
 
@@ -41,4 +41,4 @@ class FlakeTexture {
 
 }
 
-export { FlakeTexture };
+export { FlakesTexture };

+ 2 - 2
examples/webgl_materials_physical_clearcoat.html

@@ -20,7 +20,7 @@
 			import { OrbitControls } from './jsm/controls/OrbitControls.js';
 			import { HDRCubeTextureLoader } from './jsm/loaders/HDRCubeTextureLoader.js';
 
-			import { FlakeTexture } from './jsm/textures/FlakeTexture.js';
+			import { FlakesTexture } from './jsm/textures/FlakeTexture.js';
 
 			var container, stats;
 
@@ -72,7 +72,7 @@
 
 							var normalMap2 = textureLoader.load( "textures/water/Water_1_M_Normal.jpg" );
 
-							var normalMap3 = new THREE.CanvasTexture( new FlakeTexture() );
+							var normalMap3 = new THREE.CanvasTexture( new FlakesTexture() );
 							normalMap3.wrapS = THREE.RepeatWrapping;
 							normalMap3.wrapT = THREE.RepeatWrapping;
 							normalMap3.repeat.x = 10;