This release brings many improvements to various parts of the library, like improved gizmo, possibility to select instances rendered in dynamic batches, debug draw for colliders, fixed rendering of terrain when using non-uniform scaling, configurable chromatic aberration post-processing effect and also support for shadow-casting spot lights among others. Please read the changelog thoroughly before upgrading to this version, as changes done to add support for selecting instances from dynamic batches could be breaking (depending on your project)!
[(x, y, z, uniformScale), (qX, qY, qZ, qW), (idX, idY, idZ, idW), ...]
, where (idX, idY, idZ, idW)
is instance ID encoded as color!bbmod_matrix_build_normalmatrix
, which creates a matrix using which you can safely transform normal vectors in shaders.BBMOD_StaticBatch
is now deprecated. We recommend using a BBMOD_DynamicBatch
instead.ShadowmapResolution
to BBMOD_Light
, which is the shadowmap resolution.ShadowmapArea
to BBMOD_DirectionalLight
, which is the area captured by the shadowmap._slotsPerInstance
of BBMOD_DynamicBatch
's constructor now defaults to 12 instead of 8.default_fn
of BBMOD_DynamicBatch
, which is the default data writer, now also writes instance id
encoded as color (12 places in total instead of 8)!_ids
to method render
of BBMOD_DynamicBatch
, which are IDs of instances in the _batchData
array(s). Defaults to IDs of instances added to the batch using its add_instance
method.BBMOD_VFORMAT_DEBUG
, which is a vertex format useful for debugging purposes, like drawing previews of colliders.EnableGridSnap
to BBMOD_Gizmo
, which enables snapping to grid when moving objects.GridSize
to BBMOD_Gizmo
, which is the size of the grid.EnableAngleSnap
to BBMOD_Gizmo
, which enables angle snapping when rotating objects.AngleSnap
to BBMOD_Gizmo
, which is the angle snapping size.KeyCancel
to BBMOD_Gizmo
, which is the virtual key used to cancel editing and revert changes. Default is vk_escape
.KeyIgnoreSnap
to BBMOD_Gizmo
, which is the virtual key used to ignore grid and angle snapping when they are enabled. Default is vk_alt
.GetInstanceGlobalMatrix
to BBMOD_Gizmo
, which is a function that the gizmo uses to retrieve an instance's global matrix. Normally this is an identity matrix. If the instance is attached to another instance for example, then this will be that instance's transformation matrix.BBMOD_SHADER_INSTANCE_ID_BATCHED
, which is a shader used when rendering instance IDs.GetCorners
to BBMOD_FrustumCollider
, which retrieves an array of its corners.DrawDebug
to BBMOD_Ray
, which draws a debug preview of the ray.DrawDebug
to BBMOD_Collider
, which draws a debug preview of the collider. By default this method is not implemented and it will throw BBMOD_NotImplementedException
if used!DrawDebug
for colliders BBMOD_AABBCollider
, BBMOD_FrustumCollider
and BBMOD_SphereCollider
.ChromaticAberrationOffset
to BBMOD_PostProcessor
, which are chromatic aberration offsets for RGB channels.ShadowmapResolution
of BBMOD_Renderer
is now obsolete. Please use BBMOD_Light.ShadowmapResolution
instead.ShadowmapArea
of BBMOD_Renderer
is now obsolete. Please use BBMOD_DirectionalLight.ShadowmapArea
instead.BBMOD_ShSky
ignoring matrix rotation.Copyright © 2023, BlueBurn. Built on February 04, 2023 using GMDoc.