bbmod_material_reset

function

bbmod_material_reset()

Description

Resets the current material to undefined. Every block of code rendering models must start and end with this function!

Example

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();

See also

BBMOD_Material.reset

Do you find this page helpful?

Copyright © 2023, BlueBurn. Built on March 24, 2023 using GMDoc.