function
bbmod_material_reset()
Resets the current material to undefined
. Every block of code rendering models must start and end with this function!
bbmod_material_reset();
// Render static batch of trees
treeBatch.submit(matTree);
// Render characters
var _world = matrix_get(matrix_world);
with (OCharacter)
{
matrix_set(matrix_world, matrix_build(x, y, z, 0, 0, direction, 1, 1, 1));
animationPlayer.submit();
}
matrix_set(matrix_world, _world);
bbmod_material_reset();
Copyright © 2023, BlueBurn. Built on March 24, 2023 using GMDoc.