haxiomic / vector-math

Shader-math in haxe: library for GLSL vector operations, complete with swizzles and all
MIT License
39 stars 7 forks source link

Add copy into array #5

Closed haxiomic closed 3 years ago

haxiomic commented 3 years ago

Adds new field to address #4 – need to ensure this works well in generated native shader code mat4(1.0).copyIntoArray(array, 0)

Implemented as macro instance field so that any type that supports array access can be used