Just getting started with nalgebra and porting over some code to see how it works…
Looks amazing and a great way to learn about linear algebra too, even just by looking up what some of the structs and functions are
As a starting point, I tried replacing my Color struct (which has rgba components) with Vector4 and it seems I can’t access the components like that.
Was wondering if it’s possible to add the additional swizzle types… maybe to be compatible with GLSL in general?
Here’s a reference:
You can use xyzw , rgba (for colors), or stpq (for texture coordinates)