Rendering models

When you have prepared your models and their materials, you can render them using method submit. It is very important that every block of code that submits models starts and ends with the function bbmod_material_reset. Not calling this function can result into unexpected behavior!

/// @desc Draw event
bbmod_material_reset();
matrix_set(matrix_world, matrix_build(x, y, z, 0, 0, direction, 1, 1, 1));
modSword.submit();
bbmod_material_reset();
Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on April 11, 2022 using GMDoc.