ncannasse / hxsl

Haxe Shader Language, a high level 3D shader language for Haxe
86 stars 10 forks source link

Reassing realType #6

Closed profelis closed 11 years ago

profelis commented 11 years ago

Now realtypes are fixed in Build.hx

Will be great call something

Build.setRealType(TFloat3, "my.math.Float3");

ncannasse commented 11 years ago

I have added ShaderTypes for that which can be redefined on a per project basis. However please note that it might also require some specific code in Shader.saveMatrix/saveMatrixT when copying the matrix data to the Vector - not all matrixes have a rawData