3.12.0
This update mainly adds support for loading materials from *.bbmat
files. BBMAT is a simple JSON file containing material definition. It can be either created by hand or exported from BBMOD GUI.
Changelog:
General:
- Disabled color grading on GLSL ES platforms, as it did not work consistently across various devices! This may be addressed in future versions.
- Fixed terrain not casting shadows.
- BBANIM files can now contain animation events.
CLI:
- Updated Assimp from v5.2.4 to v5.2.5. This release for example fixes vertex weight issues, which in some cases lead into model deformations. You can find the full changelog here.
GML API:
Core module:
- Added function
bbmod_string_starts_with
, which checks whether a string starts with a substring. - Added function
bbmod_string_split_on_first
, which splits the string in two at the first occurrence of the delimiter. - Added function
bbmod_string_explode
, which splits given string on every occurrence of given character and puts created parts into an array. - Added function
bbmod_string_join_array
, which joins an array into a string, putting separator in between each entry. - Added function
bbmod_path_normalize
, which normalizes path for the current platform. - Added function
bbmod_path_is_relative
, which checks if a path is relative. - Added function
bbmod_path_is_absolute
, which checks if a path is absolute. - Added function
bbmod_path_get_relative
, which retrieves a relative version of a path. - Added function
bbmod_path_get_absolute
, which retrieves an absolute version of a path. - Added function
bbmod_json_load
using which you can load a JSON file. - Added function
bbmod_render_queues_get
, using which you can retrieve a read-only array of existing render queues. - Variable
global.bbmod_render_queues
is now obsolete. Please use the newbbmod_render_queues_get
instead. - Added function
bbmod_render_pass_to_string
, which retrieves a name of a render pass. - Added function
bbmod_render_pass_from_string
, which retrieves a render pass from its name. - Added function
bbmod_shader_register
, using which you can register a shader under a name. - Added function
bbmod_shader_exists
, using which you can check if there is a shader registered under given name. - Added function
bbmod_shader_get
, using which you can retrieve registered shaders. - Added function
bbmod_material_register
, using which you can register a material under a name. - Added function
bbmod_material_exists
, using which you can check if there is a material registered under given name. - Added function
bbmod_material_get
, using which you can retrieve registered materials. - Added method
to_buffer
toBBMOD_Resource
, using which you can write a resource into a buffer. - Implemented method
to_buffer
for resourcesBBMOD_Model
,BBMOD_Animation
andBBMOD_Sprite
. - Added method
to_file
toBBMOD_Resource
, using which you can write a resource into a file. - Added method
to_json
toBBMOD_Material
, using which you can save material properties to a JSON object. - Added method
from_json
toBBMOD_Material
, using which you can load material properties from a JSON object. - Implemented methods
to_file
,from_file
andfrom_file_async
forBBMOD_Material
.
Resource Manager module:
- Method
load
ofBBMOD_ResourceManager
can now load materials from*.bbmat
files.