瀏覽代碼

changed to enum for PointColor

Guide 6 年之前
父節點
當前提交
facc62c7a7
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      src/Particles/pointsCloudSystem.ts

+ 7 - 7
src/Particles/pointsCloudSystem.ts

@@ -15,16 +15,16 @@ import { StandardMaterial } from "../Materials/standardMaterial";
 import { Texture } from "./../Materials/Textures/texture";
 import { Texture } from "./../Materials/Textures/texture";
 import { Scalar } from "../Maths/math.scalar";
 import { Scalar } from "../Maths/math.scalar";
 
 
-/** Defines the 3 color options */
-export class PointColor {
+/** Defines the 4 color options */
+export enum PointColor {
     /** color value */
     /** color value */
-    public static COLOR: number = 2;
+    COLOR = 2,
     /** uv value */
     /** uv value */
-    public static UV: number = 1;
+    UV = 1,
     /** random value */
     /** random value */
-    public static RANDOM: number = 0;
-    /** color value */
-    public static STATED: number = 3;
+    RANDOM = 0,
+    /** stated value */
+    STATED = 3
 }
 }
 
 
 /**
 /**