Browse Source

style fix in readme for pt

Etienne Margraff 8 năm trước cách đây
mục cha
commit
846f02adba
1 tập tin đã thay đổi với 20 bổ sung20 xóa
  1. 20 20
      proceduralTexturesLibrary/readme.md

+ 20 - 20
proceduralTexturesLibrary/readme.md

@@ -46,26 +46,26 @@ To test your procedural texture, you can use the /test/index.html file by adding
 
 ```
 gui.add(options, 'texture', ['default', 'fire', 'wood', 'cloud', 'grass', 'road', 'brick', 'marble', '[YOURTEXTURE]', 'starfield']).onFinishChange(function () {
-					resetPTOptions();
-					switch (options.texture) {
-						case "fire":
-							currentTexture = firePT;
-							addPToptions(firePT, ['time', 'alphaThreshold', 'speed', ]);
-							break;
-						
-            //.......................
-
-            //YOURTEXTURE
-
-						case "none":
-						default:
-							currentTexture = diffuseTexture;
-							break;
-					}
-
-					std.diffuseTexture = currentTexture;
-					window.enableTexture(options.texture);
-				});
+  resetPTOptions();
+  switch (options.texture) {
+    case "fire":
+      currentTexture = firePT;
+      addPToptions(firePT, ['time', 'alphaThreshold', 'speed', ]);
+      break;
+    
+    //.......................
+
+    //YOURTEXTURE
+
+    case "none":
+    default:
+      currentTexture = diffuseTexture;
+      break;
+  }
+
+  std.diffuseTexture = currentTexture;
+  window.enableTexture(options.texture);
+});
 ```
 
 This page allows you to test your code with animated meshes, shadows, various kinds of lights and fog. Just use the UI on the right to turn features on and off.