Closed ghost closed 4 years ago
This is doable. The main "weirdness" is you probably want the scalar part to be w here, so that x y z correspond to the vector part.
We do have Field
instances, so you can use _1, _2, _3 and _4 to access the parts.
Been playing around with porting some shadertoy examples and was curious if there's a reason Quaternion doesn't have R instances.