ncannasse 9 年之前
父节点
当前提交
98c6ea61b0
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      h3d/mat/DefaultMaterialProps.hx

+ 8 - 0
h3d/mat/DefaultMaterialProps.hx

@@ -87,7 +87,15 @@ class DefaultMaterialProps {
 	}
 
 	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 }
+	#end
 	}
 
 }