LYGIA Shader Library

2mat4 (lygia/v1.2.0/math/quat/2mat4)

given a quaternion, returns a rotation 4x4 matrix

Dependencies:

Use:

<mat4> quat2mat4(<QUAT> Q)

Check it on Github




#ifndef FNC_QUAT2MAT4
#define FNC_QUAT2MAT4

mat4 quat2mat4(QUAT q) {
    return toMat4(quat2mat3(q));
}

#endif

License

LYGIA is dual-licensed under the Prosperity License and the Patron License for sponsors and contributors.

Sponsors and contributors are automatically added to the Patron License and they can ignore the any non-commercial rule of the Prosperity Licensed software (please take a look to the exception).

It's also possible to get a permanent comercial license hook to a single and specific version of LYGIA.

Get the latest news and releases

Sign up for the news letter bellow, joing the LYGIA's channel on Discord or follow the Github repository