A function defined in BBMOD_Matrix.gml
MulSelf(_matrix, ...)
Multiplies matrices and stores the result into self
.
Name | Type | Description |
---|---|---|
_matrix | Struct.BBMOD_Matrix |
The first matrix to multiply with. |
Struct.BBMOD_Matrix
Returns self
.
var _world = new BBMOD_Matrix().FromWorld();
var _view = new BBMOD_Matrix().FromView();
var _projection = new BBMOD_Matrix().FromProjection();
var _worldViewProjection = _world.Mul(_view, _projection);
Please note that this example only shows that you can pass multiple matrices to this method. If you would actually like to get the world * view * projection
matrix, you can simply call BBMOD_Matrix.FromWorldViewProjection.
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.