render

function

render([_materials[, _transform[, _batchData[, _matrix]]]])

Description

Enqueues the model for rendering.

Arguments

Name Type Description
_materials Array<Struct.BBMOD_BaseMaterial> An array of materials, one for each material slot of the model. If not specified, then BBMOD_Model.Materials is used. Defaults to undefined.
_transform Array<Real> An array of dual quaternions for transforming animated models or undefined.
_batchData Array<Real>, Array<Array<Real>> Data for dynamic batching or undefined.
_matrix Array<Real> The world matrix. Defaults to matrix_get(matrix_world).

Returns

Struct.BBMOD_Model Returns self.

Note

This method does not do anything if the model has not been loaded yet.

See also

BBMOD_AnimationPlayer.get_transform, BBMOD_BaseMaterial, BBMOD_Resource.IsLoaded, bbmod_material_reset

Do you find this page helpful?

Copyright © 2023, BlueBurn. Built on February 04, 2023 using GMDoc.