ソースを参照

style fix in readme for pt

Etienne Margraff 8 年 前
コミット
846f02adba
1 ファイル変更20 行追加20 行削除
  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.