Skip to content

Releases: blueburncz/BBMOD

3.22.0

07 Sep 20:06
Compare
Choose a tag to compare

This is a small release that mainly adds functions using which you can configure flip of camera aspect ratio and field of view. Previously this was hardcoded to be enabled. Additionally you can now define clear color when using BBMOD_DeferredRenderer.

Changelog:

  • Added new function bbmod_camera_get_fov_flip(), which returns whether BBMOD cameras use a flipped field of view.
  • Added new function bbmod_camera_set_fov_flip(_flip), using which you can change whether BBMOD cameras should use a flipped field of view. By default this is enabled for backwards compatibility.
  • Added new function bbmod_camera_get_aspect_flip(), which returns whether BBMOD cameras use a flipped aspect ratio.
  • Added new function bbmod_camera_set_aspect_flip(_flip), using which you can change whether BBMOD cameras should use a flipped aspect ratio. By default this is enabled for backwards compatibility.
  • Added new property ClearColor to BBMOD_DeferredRenderer, which is the color to clear the background with. Default value is c_black.
  • Fixed normal vectors of backfaces being flipped incorrectly.
  • Fixed lens dirt post-processing effect on OpenGL platforms.

3.21.4

04 Jul 06:23
Compare
Choose a tag to compare

This is a hotfix for the previous release, which included a typo in BBMOD_DefaultShader.set_material, causing an error.

Changelog:

  • Fixed typo in method set_material of BBMOD_DefaultShader, which tried to use the NormalSmoothness texture when the material was using NormalRoughness, causing an error.

3.21.3

03 Jul 19:33
Compare
Choose a tag to compare

This release primarily fixes rendering of 2D sprites with BBMOD and adds an option to disable two-sided materials. There are now also more *.bbmod models included - cubes, cylinders, cones, planes and slopes.

Changelog:

  • Shaders BBMOD_SHADER_DEFAULT_DEPTH and BBMOD_SHADER_GBUFFER are now compatible with vertex format BBMOD_VFORMAT_DEFAULT_SPRITE.
  • Added new macro BBMOD_U_SUBSURFACE_UV, which is the name of a fragment shader uniform of type vec4 that holds top left and bottom right coordinates of the subsurface texture on its texture page.
  • Added new function bbmod_shader_set_subsurface_uv, which sets the BBMOD_U_SUBSURFACE_UV uniform to given values.
  • Added new macro BBMOD_U_EMISSIVE_UV, which is the name of a fragment shader uniform of type vec4 that holds top left and bottom right coordinates of the emissive texture on its texture page.
  • Added new function bbmod_shader_set_emissive_uv, which sets the BBMOD_U_EMISSIVE_UV uniform to given values.
  • Added new macro BBMOD_U_TWO_SIDED, which is the name of a fragment shader uniform of type float that equals 1 when the material is two-sided or 0 when it is not. If a material is two-sided, normal vectors of backfaces are flipped before shading.
  • Added new function bbmod_shader_set_two_sided, which sets the BBMOD_U_TWO_SIDED uniform.
  • Added new property TwoSided to BBMOD_BaseMaterial, which tells whether the material is two-sided. If the material is two-sided, normal vectors of backfaces are flipped before shading. Default value is true.
  • Fixed property RenderScale of renderers affecting the size of the final surface on screen.
  • Methods DrawSprite, DrawSpriteExt, DrawSpriteGeneral, DrawSpritePart, DrawSpritePartExt, DrawSpritePos, DrawSpriteStretched, DrawSpriteStretchedExt, DrawSpriteTiled, DrawSpriteTiledExt of BBMOD_RenderQueue now set uniform BBMOD_U_BASE_OPACITY_UV automatically and you do not need to assign the BaseOpacity property of used material to the sprite drawn.
  • Method set_material of BBMOD_DefaultShader now automatically sets uniforms BBMOD_U_BASE_OPACITY_UV, BBMOD_U_NORMAL_W_UV, BBMOD_U_MATERIAL_UV, BBMOD_U_SUBSURFACE_UV and BBMOD_U_EMISSIVE_UV.
  • Struct BBMOD_DefaultSpriteShader is now deprecated! Please use BBMOD_DefaultShader instead.
  • Macro BBMOD_SHADER_DEFAULT_SPRITE is now deprecated! Please use BBMOD_SHADER_DEFAULT instead.
  • Macro BBMOD_MATERIAL_DEFAULT_SPRITE is now deprecated! Please use BBMOD_MATERIAL_DEFAULT instead.
  • Added new member SetGpuDepth to enum BBMOD_ERenderCommand, which is a render command that changes the z coordinate at which sprites and text are drawn.
  • Added new method SetGpuDepth to BBMOD_RenderQueue, which adds a SetGpuDepth command to the render queue.
  • Added new member CallFunction to enum BBMOD_ERenderCommand, which is a render command that executes a custom function with given arguments.
  • Added new method CallFunction to BBMOD_RenderQueue, which adds a CallFunction command to the render queue.
  • Added more ready-to-use models of basic shapes.
  • Fixed method clear of BBMOD_ResourceManager not always removing destroyed resources, which could cause crashes for example when restarting rooms.
  • Fixed strength of lens flares exceeding 1 when property Range is not infinity.
  • Fixed macro BBMOD_RELEASE_PATCH, which we forgot to increase the last release.
  • Fixed macro BBMOD_RELEASE_STRING, which used invalid syntax.

3.21.2

18 Apr 21:15
Compare
Choose a tag to compare

This release fixes few bugs in the new post-processing system and adds a new "lens dirt strength" option to the sun shafts effect, using which you can modulate the strength of the lens dirt effect for sun shafts.

Changelog:

  • Added new property LensDirtStrength to BBMOD_SunShafts, which modules the strength of the lens dirt effect when applied to sun shafts. Default value is 1.
  • Added new optional argument _lensDirtStrength to the constructor of BBMOD_SunShafts, using which you can change the initial value of the LensDirtStrength property.
  • Fixed BBMOD_LensDistortionEffect, which did not work with negative strength.
  • Fixed BBMOD_ColorGradingEffect, which did not actually apply color grading.

3.21.1

16 Apr 19:59
Compare
Choose a tag to compare

This release is a hotfix for an issue where renderers did not display the application surface if they did not use a post-processor.

Changelog:

  • Fixed method present of BBMOD_BaseRenderer, BBMOD_DefaultRenderer and BBMOD_DeferredRenderer, which did not draw the application surface if post-processor was not defined or was disabled.
  • Fixed wrong comparisons with the epsilon value, which caused getting NaN in various places (e.g. BBMOD_Vec3.Normalize). Thanks to @xgreffe for the pull request!
  • Fixed error that occured when BBMOD_Material.from_json was given a JSON that included string "undefined" as a value for a shader (which is a valid option).

3.21.0

13 Apr 10:17
Compare
Choose a tag to compare

This release brings a massive overhaul to the post-processing system. Post-processing effects are now individual structs that are added to a post-processor, which then executes them in order, making the system fully customisable. Many new post-processing effects were added. HDR post-processing effects are available when using the deferred renderer. Various smaller fixes and improvements are also included in this release.

Changelog:

  • Added new struct BBMOD_Rect, which is a rectangle structure defined by position and size.
  • Added new struct BBMOD_PostProcessEffect, which is a base struct for all post-processing effects.
  • Added new method add_effect(_effect) to BBMOD_PostProcessor, which adds an effect to the post-processor.
  • Added new method remove_effect(_effect) to BBMOD_PostProcessor, which removes an effect from the post-processor.
  • Method draw of BBMOD_PostProcessor now accepts optional arguments _depth and _normals, where _depth is a surface containing the scene depth encoded into RGB channels or undefined if not available, and _normals a surface containing the scene's world-space normals in the RGB channels or undefined if not available.
  • Added new property DesignWidth to BBMOD_PostProcessor, which is the width of the screen for which was the game designed or undefined. Effects are scaled based on this and the current width of the screen if not undefined. Default value is 1366.
  • Added new property DesignHeight to BBMOD_PostProcessor, which is the height of the screen for which was the game designed or undefined. Effects are scaled based on this and the current height of the screen if not undefined. Default value is undefined.
  • Added new method get_effect_scale() to BBMOD_PostProcessor, which retrieves the current effect scale based on the current screen size and properties DesignWidth and DesignHeight.
  • Added new read-only property Rect to BBMOD_PostProcessor, which is the screen size and position. This is not initialized before BBMOD_PostProcessor.draw is called!
  • Added new property LensDirt to BBMOD_PostProcessor, which is a lens dirt texture applied to effects like light bloom and lens flares.
  • Added new property LensDirtStrength, which is the intensity of the lens dirt effect.
  • Added new property Starburst to BBMOD_PostProcessor, which is a starburst texture applied to lens flares (when enabled).
  • Added new property StarburstStrength, which is the intensity of the starburst effect.
  • Added new struct BBMOD_ChromaticAberrationEffect, which is a chromatic aberration post-processing effect.
  • Added new struct BBMOD_ColorGradingEffect, which is a color grading post-processing effect.
  • Added new struct BBMOD_DepthOfFieldEffect, which is a depth of field post-processing effect.
  • Added new struct BBMOD_DirectionalBlurEffect, which is a directional blur post-processing effect.
  • Added new struct BBMOD_ExposureEffect, which is a post-processing effect that applies camera exposure.
  • Added new struct BBMOD_FilmGrainEffect, which is a film grain post-processing effect.
  • Added new struct BBMOD_FXAAEffect, which is a fast approximate anti-aliasing post-processing effect.
  • Added new struct BBMOD_GammaCorrectEffect, which is a post-processing effect that applies gamma correction.
  • Added new struct BBMOD_KawaseBlurEffect, which is a Kawase blur post-processing effect.
  • Added new struct BBMOD_LensDistortionEffect, which is a barell/pincushion lens distortion post-processing effect.
  • Added new struct BBMOD_LensFlareElement, which is a single lens flare element (sprite).
  • Added new struct BBMOD_LensFlare, which is a collection of BBMOD_LensFlareElements that together define a single lens flare instance.
  • Added new function bbmod_lens_flare_add(_lensFlare), which adds a lens flare to be drawn with BBMOD_LensFlaresEffect.
  • Added new function bbmod_lens_flare_count(), which retrieves number of lens flares to be drawn.
  • Added new function bbmod_lens_flare_get(_index), which retrieves a lens flare at given index.
  • Added new function bbmod_lens_flare_remove(_lensFlare), which removes a lens flare so it is not drawn anymore.
  • Added new function bbmod_lens_flare_remove_index(_index), which removes a lens flare so it is not drawn anymore
  • Added new function bbmod_lens_flare_clear(), which removes all lens flares.
  • Added new struct BBMOD_LensFlaresEffect, which is a post-processing effect that draws all lens flares added with bbmod_lens_flare_add.
  • Added new struct BBMOD_LightBloomEffect, which is a light bloom post-processing effect.
  • Added new struct BBMOD_LumaSharpenEffect, which is a luma sharpen post-processing effect.
  • Added new struct BBMOD_MonochromeEffect, which is a monochrome post-processing effect.
  • Added new struct BBMOD_NormalDistortionEffect, which is a post-processing effect that distort screen using a normal map texture.
  • Added new struct BBMOD_RadialBlurEffect, which is a radial blur post-processing effect.
  • Added new struct BBMOD_ReinhardTonemapEffect, which is a Reinhard tonemapping post-processing effect.
  • Added new struct BBMOD_SunShaftsEffect, which is a sun shafts post-processing effect.
  • Added new struct BBMOD_VignetteEffect, which is a vignette post-processing effect.
  • Property ColorGradingLUT of BBMOD_PostProcessor is now obsolete! Please use the new BBMOD_ColorGradingEffect instead.
  • Properties ChromaticAberration and ChromaticAberrationOffset of BBMOD_PostProcessor are now obsolete! Please use the new BBMOD_ChromaticAberrationEffect instead.
  • Property Grayscale of BBMOD_PostProcessor is now obsolete! Please use the new BBMOD_MonochromeEffect instead.
  • Properties Vignette and VignetteColor of BBMOD_PostProcessor are now obsolete! Please use the new BBMOD_VignetteEffect instead.
  • Property Antialiasing of BBMOD_PostProcessor is now obsolete! Please use the new BBMOD_FXAAEffect instead.
  • Enum BBMOD_EAntialiasing is now obsolete! Please use the new BBMOD_FXAAEffect instead.
  • Method world_to_screen of BBMOD_BaseCamera now also accepts BBMOD_Vec4s, using which you can project directions (W equal to 0) as well instead of just positions (W equal to 1).
  • Added shadowmap stabilization for directional lights to reduce flickering when the camera is moving.
  • Added new member Outline to enum BBMOD_ERenderPass, which is a render pass for model outlines. Please note that this is not yet used.
  • Added new member Translucent to enum BBMOD_ERenderPass, which is a render pass for translucent object that take a blurred screen surface as an input. Please note that this is not yet used.
  • Added new member Distortion to enum BBMOD_ERenderPass, which is a render pass for screen distortion effects. Please note that this is not yet used.
  • Fixed a bug where BBMOD_Resource was not removed from a BBMOD_ResourceManager when destroyed.
  • Fixed method load of BBMOD_ResourceManager which executed callback multiple times when loading models with materials.
  • Fixed depth in deferred rendering pipeline being cleared to 0 instead of 1, which was inconsistent with the forward renderer and made particles invisible when not rendered over solid geometry (e.g. only a sky dome was behind).
  • Fixed shading of backfacing polygons.
  • Fixed rpaths for BBMOD CLI on macOS.

3.20.2

21 Jan 14:13
Compare
Choose a tag to compare

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.

3.20.1

17 Dec 16:13
Compare
Choose a tag to compare

This is a small patch release that fixes a few bugs in the library. As a little bonus, a tiny portion of the Core module was moved to a new Core/Base subfolder. If you would like to use BBMOD only for rendering of 3D animated models in your GameMaker project, without using its material system and other capabilities, this is the only folder that you need to import into your project.

Changelog:

  • Renderer BBMOD_DeferredRenderer now also supports the DepthOnly render pass and blends depth of forward rendered models into the G-Buffer.
  • Fixed normal mapping on terrain.
  • Fixed spot lights affecting backsides of models.
  • Fixed materials BBMOD_MATERIAL_DEFERRED and BBMOD_TERRAIN_DEFERRED being registered under wrong names and hence being loaded incorrectly from BBMAT files.
  • Fixed crash that happens in recent releases of GameMaker in function bbmod_texture_set_stage_vs when running on macOS and libBBMOD.dylib is missing.
  • Fixed method RotateOther of BBMOD_Quaternion.
  • Fixed method ScaleSelf of BBMOD_DualQuaternion.
  • Property Materials of BBMOD_Model can now contain also Pointer.Textures instead of BBMOD_Materials, but then the model can be rendered only using the submit method!
  • There is now a new folder BBMOD/Core/Base, which contains the absolute minimum required to use BBMOD's animation player in your GameMaker projects. The material system is not included in this folder, meaning you will need to write your own shaders to draw the models. Do not forget to add #macro BBMOD_MATERIAL_DEFAULT -1 to your project if you import only this folder!

3.20.0

11 Sep 08:59
Compare
Choose a tag to compare

This release brings a new deferred rendering pipeline with support for unlimited number of shadow-casting lights. All light types, including point lights, can now cast shadows. Please note that the deferred renderer has specific hardware requirements and therefore it is not supported on all platforms! When deferred rendering is not available, you can still use the old default renderer, but that is still limited to maximum 8 punctual lights and only a single shadow-casting light. Additionally, you can now configure frame skip for capturing shadowmaps or mark a light as "static" to capture its shadowmap only once to increase performance.

Changelog:

  • Added new struct BBMOD_DeferredRenderer, which is a deferred renderer with support for unlimited number of shadow-casting lights.
  • Added new function bbmod_deferred_renderer_is_supported, which checks whether deferred renderer is supported on the current platform.
  • Added new macro BBMOD_SHADER_GBUFFER, which is a shader for rendering models into the G-buffer.
  • Added new macro BBMOD_MATERIAL_DEFERRED, which is an opaque material that can be used with the new BBMOD_DeferredRenderer.
  • Added new macro BBMOD_SHADER_TERRAIN_GBUFFER, which is a shader for rendering terrain into the G-buffer. Supports 3 terrain layers at most!
  • Added new macro BBMOD_MATERIAL_TERRAIN_DEFERRED, which is a terrain material that can be used with the new BBMOD_DeferredRenderer.
  • Moved properties EnableSSAO, SSAOScale, SSAORadius, SSAOPower, SSAOAngleBias, SSAODepthRange, SSAOSelfOcclusionBias and SSAOBlurDepthRange from BBMOD_DefaultRenderer to BBMOD_BaseRenderer.
  • BBMOD_PointLight can now also cast shadows.
  • Added new property Frameskip to BBMOD_Light, which is the number of frames to skip between individual updates of the light's shadowmap.
  • Added new property Static to BBMOD_Light, which when set to true, the light's shadowmap is captured only once.
  • Added new property NeedsUpdate to BBMOD_Light, which if true, then the light's shadowmap needs to be updated.
  • Added new member Background to enum BBMOD_ERenderPass, which is a render pass for background objects (e.g. skydome).
  • Material BBMOD_MATERIAL_SKY now uses the Background render pass instead of Forward.
  • Implemented the new Background render pass into BBMOD_DefaultRenderer.
  • Added new macro BBMOD_U_SHADOWMAP_NORMAL_OFFSET_VS, which is the name of a vertex shader uniform of type float that holds how much are vertices offset by their normal before they are transformed into shadowmap-space, using formula vertex + normal * normalOffset.
  • Added new macro BBMOD_U_SHADOWMAP_NORMAL_OFFSET_PS, which is the name of a fragment shader uniform of type float that holds how much are vertices offset by their normal before they are transformed into shadowmap-space, using formula vertex + normal * normalOffset.
  • Macro BBMOD_U_SHADOWMAP_NORMAL_OFFSET is now obsolete! Please use the new BBMOD_U_SHADOWMAP_NORMAL_OFFSET_VS instead.
  • Added new function bbmod_hdr_is_supported, which checks whether high dynamic range (HDR) rendering is supported on the current platform.
  • Added new macro BBMOD_U_HDR, which is the name of a fragment shader uniform of type float that holds whether HDR rendering is enabled (1.0) or not (0.0).
  • Added new function bbmod_shader_set_normal_matrix, which sets the BBMOD_U_NORMAL_MATRIX uniform.
  • Added new function bbmod_shader_set_texture_offset, which sets the BBMOD_U_TEXTURE_OFFSET uniform.
  • Added new function bbmod_shader_set_texture_scale, which sets the BBMOD_U_TEXTURE_SCALE uniform.
  • Added new function bbmod_shader_set_bones, which sets the BBMOD_U_BONES uniform.
  • Added new function bbmod_shader_set_batch_data, which sets the BBMOD_U_BATCH_DATA uniform.
  • Added new function bbmod_shader_set_instance_id, which sets the BBMOD_U_INSTANCE_ID uniform.
  • Added new function bbmod_shader_set_material_index, which sets the BBMOD_U_MATERIAL_INDEX uniform.
  • Added new function bbmod_shader_set_base_opacity_multiplier, which sets the BBMOD_U_BASE_OPACITY_MULTIPLIER uniform.
  • Added new function bbmod_shader_set_normal_smoothness, which sets uniforms BBMOD_U_NORMAL_W and BBMOD_U_IS_ROUGHNESS.
  • Added new function bbmod_shader_set_normal_roughness, which sets uniforms BBMOD_U_NORMAL_W and BBMOD_U_IS_ROUGHNESS.
  • Added new function bbmod_shader_set_specular_color, which sets uniforms BBMOD_U_MATERIAL and BBMOD_U_IS_METALLIC.
  • Added new function bbmod_shader_set_metallic_ao, which sets uniforms BBMOD_U_MATERIAL and BBMOD_U_IS_METALLIC.
  • Added new function bbmod_shader_set_subsurface, which sets the BBMOD_U_SUBSURFACE uniform.
  • Added new function bbmod_shader_set_emissive, which sets the BBMOD_U_EMISSIVE uniform.
  • Added new function bbmod_shader_set_lightmap, which sets the BBMOD_U_LIGHTMAP uniform.
  • Added new function bbmod_shader_set_base_opacity_uv, which sets the BBMOD_U_BASE_OPACITY_UV uniform.
  • Added new function bbmod_shader_set_normal_w_uv, which sets the BBMOD_U_NORMAL_W_UV uniform.
  • Added new function bbmod_shader_set_material_uv, which sets the BBMOD_U_MATERIAL_UV uniform.
  • Added new function bbmod_shader_set_alpha_test, which sets the BBMOD_U_ALPHA_TEST uniform.
  • Added new function bbmod_shader_set_cam_pos, which sets the BBMOD_U_CAM_POS uniform.
  • Added new function bbmod_shader_set_zfar, which sets the BBMOD_U_ZFAR uniform.
  • Added new function bbmod_shader_set_exposure, which sets the BBMOD_U_EXPOSURE uniform.
  • Added new function bbmod_shader_set_soft_distance, which sets the BBMOD_U_SOFT_DISTANCE uniform.
  • Added new function bbmod_shader_set_fog, which sets uniforms BBMOD_U_FOG_COLOR, BBMOD_U_FOG_INTENSITY, BBMOD_U_FOG_START and BBMOD_U_FOG_RCP_RANGE.
  • Added new function bbmod_shader_set_ambient_light, which sets uniforms BBMOD_U_LIGHT_AMBIENT_UP, BBMOD_U_LIGHT_AMBIENT_DOWN and BBMOD_U_LIGHT_AMBIENT_DIR_UP.
  • Added new function bbmod_shader_set_directional_light, which sets uniforms BBMOD_U_LIGHT_DIRECTIONAL_DIR and BBMOD_U_LIGHT_DIRECTIONAL_COLOR.
  • Added new function bbmod_shader_set_ssao, which sets the BBMOD_U_SSAO uniform.
  • Added new function bbmod_shader_set_ibl, which sets uniforms BBMOD_U_IBL_ENABLE, BBMOD_U_IBL_TEXEL and BBMOD_U_IBL.
  • Added new function bbmod_shader_set_punctual_lights, which sets uniforms BBMOD_U_LIGHT_PUNCTUAL_DATA_A and BBMOD_U_LIGHT_PUNCTUAL_DATA_B.
  • Added new function bbmod_shader_set_shadowmap_bias, which sets the BBMOD_U_SHADOWMAP_BIAS uniform.
  • Added new function bbmod_shader_set_hdr, which sets the BBMOD_U_HDR uniform.
  • Method set_texture_offset of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_texture_offset instead.
  • Method set_texture_scale of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_texture_scale instead.
  • Method set_bones of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_bones instead.
  • Method set_batch_data of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_batch_data instead.
  • Method set_alpha_test of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_alpha_test instead.
  • Method set_cam_pos of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_cam_pos instead.
  • Method set_exposure of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_exposure instead.
  • Method set_set_instance_id of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_instance_id instead.
  • Method set_set_material_index of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_material_index instead.
  • Method set_set_ibl of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_ibl instead.
  • Method set_ambient_light of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_ambient_light instead.
  • Method set_directional_light of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_directional_light instead.
  • Method set_punctual_lights of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_punctual_lights instead.
  • Method set_fog of BBMOD_BaseShader is now deprecated! Please use the new function bbmod_shader_set_fog instead.
  • Method set_normal_smoothness of BBMOD_DefaultShader is now deprecated! Please use the new function bbmod_shader_set_normal_smoothness instead.
  • Method set_specular_color of BBMOD_DefaultShader is now deprecated! Please use the new function bbmod_shader_set_specular_color instead.
  • Method set_normal_roughness of BBMOD_DefaultShader is now deprecated! Please use the new function bbmod_shader_set_normal_roughness instead.
  • Method set_metallic_ao of BBMOD_DefaultShader is now deprecated! Please use the new function bbmod_shader_set_metallic_ao instead.
  • Method set_subsurface of BBMOD_DefaultShader is now deprecated! Please use the new function bbmod_shader_set_subsurface instead.
  • Method set_emissive of BBMOD_DefaultShader is now deprecated! Please use the new function bbmod_shader_set_emissive instead.
  • Method set_lightmap of BBMOD_DefaultLightmapShader is now deprecated! Please use the new function bbmod_shader_set_lightmap instead.
  • Fixed BBMOD_PunctualLight not affecting particles by default.
  • Fixed function bbmod_mrt_is_supported not working on Mac.
  • Fixed method clone of BBMOD_TerrainMaterial, which returned instances of `BBM...
Read more

3.19.3

06 Sep 08:08
Compare
Choose a tag to compare

This is a small patch release that fixes Gizmo on Windows.

Changelog:

  • Fixed shader BBMOD_SHADER_INSTANCE_ID not working on Windows due to an invalid vertex format defined in a shader.
  • Fixed shader BBMOD_SHADER_INSTANCE_ID not having variants for vertex formats BBMOD_VFORMAT_DEFAULT_COLOR, BBMOD_VFORMAT_DEFAULT_COLOR_ANIMATED, BBMOD_VFORMAT_DEFAULT_COLOR_BATCHED.