Skip to content

3.20.2

Compare
Choose a tag to compare
@kraifpatrik kraifpatrik released this 21 Jan 14:13

This little release mainly adds a new interface BBMOD_IMaterial into the Core/Base module, which serves as a basis for custom material systems that can be used with the submit method. Few other new utility functions and bug fixes are also included in this release. Additionally, reflection probes can now have infinite extents and support HDR capture.

Changelog:

  • Added new interface BBMOD_IMaterial, which is an interface for the most basic BBMOD materials that can be used with the BBMOD_Model.submit method.
  • Added new function bbmod_assert(_expr[, _error]), which shows an error if given expression is false and quits the game.
  • Added new function bbmod_shader_set_globals, which passes all global uniforms to given shader.
  • Added new function bbmod_render_queues_submit([_instances]), which submits all existing render queues.
  • Added new function bbmod_render_queues_clear(), which clears all existing render queues.
  • Added new macro BBMOD_MATRIX_IDENTITY, which is a read-only globally allocated identity matrix.
  • Added new property Infinite to BBMOD_ReflectionProbe. When set to true then the reflection probe has infinite extents, otherwise they are defined by the Size property. Default value is false.
  • Reflection probes are now captured in HDR if supported by the target platform.
  • Method BBMOD_Material.from_json now supports undefined and string "undefined" for shaders, in which case it removes a shader for given render pass.
  • Argument _sha1 of method BBMOD_ResourceManager.load can now be skipped instead of set to undefined if you do not wish to do a SHA1 check.
  • Fixed method set_pre_transform of BBMOD_DLL, which accidentally controlled the "apply scale" option instead.
  • Fixed disabling texture filtering via BBMOD_Material.Filtering not working.