Преглед изворни кода

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.