bbmod_material_reset

A function defined in BBMOD_Material.gml

bbmod_material_reset()

Description

Resets the current material to undefined. Must be called after every block of code that submits models or render queues!

Example

// Submit static batch of trees
treeBatch.submit(matTree);

// Submit 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);

// Reset materials after submits!
bbmod_material_reset();

See also

BBMOD_AnimationPlayer.submit, BBMOD_DynamicBatch.submit, BBMOD_Material.reset, BBMOD_Model.submit, BBMOD_RenderQueue.submit, BBMOD_Terrain.submit

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.