This update adds support for dynamic batching of models with multiple materials.
BBMOD_Material.Mipmapping
not working for externally loaded textures.BBMOD_Material.apply
always resetting shader, even when it wasn't necessary. This should slightly increase rendering performance.submit
, render
of BBMOD_Model
and BBMOD_DynamicBatch
and method BBMOD_RenderQueue.draw_mesh_batched
can now also be array of arrays of data. This has the same effect like if you called these methods multiple times with the individual arrays, but it has better performance.bbmod_array_clone
, which creates a shallow clone of an array.bbmod_array_to_buffer
, which writes an array into a buffer.bbmod_array_from_buffer
, which creates an array with values from a buffer.Frozen
to BBMOD_Model
, which is set to true
when the model is frozen.Frozen
to BBMOD_Mesh
, which is set to true
when the mesh is frozen.copy
to BBMOD_Model
, which deeply copies model's data into another model.clone
to BBMOD_Model
, which creates a deep clone of the model.copy
to BBMOD_Node
, which deeply copies node's data into another node.clone
to BBMOD_Node
, which creates a deep clone of the node.copy
to BBMOD_Mesh
, which deeply copies mesh's data into another mesh.clone
to BBMOD_Mesh
, which creates a deep clone of the mesh.BBMOD_DynamicBatch
._model
and _size
of constructor of BBMOD_DynamicBatch
are now optional.from_model
to BBMOD_DynamicBatch
, using which you can create the model batch later when _model
is not passed to the constructor._slotsPerInstance
to constructor of BBMOD_DynamicBatch
, which is the number of slots that each instance takes in the data array.SlotsPerInstance
to BBMOD_DynamicBatch
, which is the number of slots that each instance takes in the data array.BatchLength
to BBMOD_DynamicBatch
, which is the total length of batch data array for a single draw call.Batch
to BBMOD_DynamicBatch
, which is the batched version of the model.InstanceCount
to BBMOD_DynamicBatch
, which is the number of instances currently added to the dynamic batch.DataWriter
to BBMOD_DynamicBatch
, which is a function that writes instance data into the batch data array. It defaults to BBMOD_DynamicBatch.default_fn
.add_instance
to BBMOD_DynamicBatch
, which adds an instance to the dynamic batch.update_instance
to BBMOD_DynamicBatch
, which updates batch data for given instance.remove_instance
to BBMOD_DynamicBatch
, which removes an instance from the dynamic batch._materials
of method submit
and render
of BBMOD_DynamicBatch
is now optional._batchData
to methods submit
and render
of BBMOD_Model
, which is data for dynamic batching._materials
and _fn
of method submit_object
and render_object
of BBMOD_DynamicBatch
are now optional._position
to method spawn_particle
of BBMOD_ParticleEmitter
, which is the position to spawn the particle at. If not specified, it defaults to the particle emitter's position.BBMOD_ResourceManager
not remembering loaded materials.Copyright © 2023, BlueBurn. Built on February 04, 2023 using GMDoc.