ncannasse 9 lat temu
rodzic
commit
98c6ea61b0
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      h3d/mat/DefaultMaterialProps.hx

+ 8 - 0
h3d/mat/DefaultMaterialProps.hx

@@ -87,7 +87,15 @@ class DefaultMaterialProps {
 	}
 	}
 
 
 	public static function particlesDefault() : MaterialProps {
 	public static function particlesDefault() : MaterialProps {
+	#if (haxe_ver < 3.3)
+		var m = new DefaultMaterialProps();
+		m.kind = Alpha;
+		m.shadows = None;
+		m.cull = false;
+		return m;
+	#else
 		return { kind : Alpha, shadows : None, cull : false }
 		return { kind : Alpha, shadows : None, cull : false }
+	#end
 	}
 	}
 
 
 }
 }