3.20.2
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 theBBMOD_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
toBBMOD_ReflectionProbe
. When set totrue
then the reflection probe has infinite extents, otherwise they are defined by theSize
property. Default value isfalse
. - Reflection probes are now captured in HDR if supported by the target platform.
- Method
BBMOD_Material.from_json
now supportsundefined
and string "undefined" for shaders, in which case it removes a shader for given render pass. - Argument
_sha1
of methodBBMOD_ResourceManager.load
can now be skipped instead of set toundefined
if you do not wish to do a SHA1 check. - Fixed method
set_pre_transform
ofBBMOD_DLL
, which accidentally controlled the "apply scale" option instead. - Fixed disabling texture filtering via
BBMOD_Material.Filtering
not working.