ncannasse %!s(int64=9) %!d(string=hai) anos
pai
achega
98c6ea61b0
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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
 	}
 
 }