Releases: blueburncz/BBMOD
3.22.0
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
toBBMOD_DeferredRenderer
, which is the color to clear the background with. Default value isc_black
. - Fixed normal vectors of backfaces being flipped incorrectly.
- Fixed lens dirt post-processing effect on OpenGL platforms.
3.21.4
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
ofBBMOD_DefaultShader
, which tried to use theNormalSmoothness
texture when the material was usingNormalRoughness
, causing an error.
3.21.3
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
andBBMOD_SHADER_GBUFFER
are now compatible with vertex formatBBMOD_VFORMAT_DEFAULT_SPRITE
. - Added new macro
BBMOD_U_SUBSURFACE_UV
, which is the name of a fragment shader uniform of typevec4
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 theBBMOD_U_SUBSURFACE_UV
uniform to given values. - Added new macro
BBMOD_U_EMISSIVE_UV
, which is the name of a fragment shader uniform of typevec4
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 theBBMOD_U_EMISSIVE_UV
uniform to given values. - Added new macro
BBMOD_U_TWO_SIDED
, which is the name of a fragment shader uniform of typefloat
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 theBBMOD_U_TWO_SIDED
uniform. - Added new property
TwoSided
toBBMOD_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 istrue
. - 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
ofBBMOD_RenderQueue
now set uniformBBMOD_U_BASE_OPACITY_UV
automatically and you do not need to assign theBaseOpacity
property of used material to the sprite drawn. - Method
set_material
ofBBMOD_DefaultShader
now automatically sets uniformsBBMOD_U_BASE_OPACITY_UV
,BBMOD_U_NORMAL_W_UV
,BBMOD_U_MATERIAL_UV
,BBMOD_U_SUBSURFACE_UV
andBBMOD_U_EMISSIVE_UV
. - Struct
BBMOD_DefaultSpriteShader
is now deprecated! Please useBBMOD_DefaultShader
instead. - Macro
BBMOD_SHADER_DEFAULT_SPRITE
is now deprecated! Please useBBMOD_SHADER_DEFAULT
instead. - Macro
BBMOD_MATERIAL_DEFAULT_SPRITE
is now deprecated! Please useBBMOD_MATERIAL_DEFAULT
instead. - Added new member
SetGpuDepth
to enumBBMOD_ERenderCommand
, which is a render command that changes the z coordinate at which sprites and text are drawn. - Added new method
SetGpuDepth
toBBMOD_RenderQueue
, which adds aSetGpuDepth
command to the render queue. - Added new member
CallFunction
to enumBBMOD_ERenderCommand
, which is a render command that executes a custom function with given arguments. - Added new method
CallFunction
toBBMOD_RenderQueue
, which adds aCallFunction
command to the render queue. - Added more ready-to-use models of basic shapes.
- Fixed method
clear
ofBBMOD_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 notinfinity
. - 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
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
toBBMOD_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 ofBBMOD_SunShafts
, using which you can change the initial value of theLensDirtStrength
property. - Fixed
BBMOD_LensDistortionEffect
, which did not work with negative strength. - Fixed
BBMOD_ColorGradingEffect
, which did not actually apply color grading.
3.21.1
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
ofBBMOD_BaseRenderer
,BBMOD_DefaultRenderer
andBBMOD_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
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)
toBBMOD_PostProcessor
, which adds an effect to the post-processor. - Added new method
remove_effect(_effect)
toBBMOD_PostProcessor
, which removes an effect from the post-processor. - Method
draw
ofBBMOD_PostProcessor
now accepts optional arguments_depth
and_normals
, where_depth
is a surface containing the scene depth encoded into RGB channels orundefined
if not available, and_normals
a surface containing the scene's world-space normals in the RGB channels orundefined
if not available. - Added new property
DesignWidth
toBBMOD_PostProcessor
, which is the width of the screen for which was the game designed orundefined
. Effects are scaled based on this and the current width of the screen if notundefined
. Default value is 1366. - Added new property
DesignHeight
toBBMOD_PostProcessor
, which is the height of the screen for which was the game designed orundefined
. Effects are scaled based on this and the current height of the screen if notundefined
. Default value isundefined
. - Added new method
get_effect_scale()
toBBMOD_PostProcessor
, which retrieves the current effect scale based on the current screen size and propertiesDesignWidth
andDesignHeight
. - Added new read-only property
Rect
toBBMOD_PostProcessor
, which is the screen size and position. This is not initialized beforeBBMOD_PostProcessor.draw
is called! - Added new property
LensDirt
toBBMOD_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
toBBMOD_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 ofBBMOD_LensFlareElement
s that together define a single lens flare instance. - Added new function
bbmod_lens_flare_add(_lensFlare)
, which adds a lens flare to be drawn withBBMOD_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 withbbmod_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
ofBBMOD_PostProcessor
is now obsolete! Please use the newBBMOD_ColorGradingEffect
instead. - Properties
ChromaticAberration
andChromaticAberrationOffset
ofBBMOD_PostProcessor
are now obsolete! Please use the newBBMOD_ChromaticAberrationEffect
instead. - Property
Grayscale
ofBBMOD_PostProcessor
is now obsolete! Please use the newBBMOD_MonochromeEffect
instead. - Properties
Vignette
andVignetteColor
ofBBMOD_PostProcessor
are now obsolete! Please use the newBBMOD_VignetteEffect
instead. - Property
Antialiasing
ofBBMOD_PostProcessor
is now obsolete! Please use the newBBMOD_FXAAEffect
instead. - Enum
BBMOD_EAntialiasing
is now obsolete! Please use the newBBMOD_FXAAEffect
instead. - Method
world_to_screen
ofBBMOD_BaseCamera
now also acceptsBBMOD_Vec4
s, 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 enumBBMOD_ERenderPass
, which is a render pass for model outlines. Please note that this is not yet used. - Added new member
Translucent
to enumBBMOD_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 enumBBMOD_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 aBBMOD_ResourceManager
when destroyed. - Fixed method
load
ofBBMOD_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
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.
3.20.1
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 theDepthOnly
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
andBBMOD_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 andlibBBMOD.dylib
is missing. - Fixed method
RotateOther
ofBBMOD_Quaternion
. - Fixed method
ScaleSelf
ofBBMOD_DualQuaternion
. - Property
Materials
ofBBMOD_Model
can now contain alsoPointer.Texture
s instead ofBBMOD_Material
s, but then the model can be rendered only using thesubmit
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
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 newBBMOD_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 newBBMOD_DeferredRenderer
. - Moved properties
EnableSSAO
,SSAOScale
,SSAORadius
,SSAOPower
,SSAOAngleBias
,SSAODepthRange
,SSAOSelfOcclusionBias
andSSAOBlurDepthRange
fromBBMOD_DefaultRenderer
toBBMOD_BaseRenderer
. BBMOD_PointLight
can now also cast shadows.- Added new property
Frameskip
toBBMOD_Light
, which is the number of frames to skip between individual updates of the light's shadowmap. - Added new property
Static
toBBMOD_Light
, which when set totrue
, the light's shadowmap is captured only once. - Added new property
NeedsUpdate
toBBMOD_Light
, which iftrue
, then the light's shadowmap needs to be updated. - Added new member
Background
to enumBBMOD_ERenderPass
, which is a render pass for background objects (e.g. skydome). - Material
BBMOD_MATERIAL_SKY
now uses theBackground
render pass instead ofForward
. - Implemented the new
Background
render pass intoBBMOD_DefaultRenderer
. - Added new macro
BBMOD_U_SHADOWMAP_NORMAL_OFFSET_VS
, which is the name of a vertex shader uniform of typefloat
that holds how much are vertices offset by their normal before they are transformed into shadowmap-space, using formulavertex + normal * normalOffset
. - Added new macro
BBMOD_U_SHADOWMAP_NORMAL_OFFSET_PS
, which is the name of a fragment shader uniform of typefloat
that holds how much are vertices offset by their normal before they are transformed into shadowmap-space, using formulavertex + normal * normalOffset
. - Macro
BBMOD_U_SHADOWMAP_NORMAL_OFFSET
is now obsolete! Please use the newBBMOD_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 typefloat
that holds whether HDR rendering is enabled (1.0) or not (0.0). - Added new function
bbmod_shader_set_normal_matrix
, which sets theBBMOD_U_NORMAL_MATRIX
uniform. - Added new function
bbmod_shader_set_texture_offset
, which sets theBBMOD_U_TEXTURE_OFFSET
uniform. - Added new function
bbmod_shader_set_texture_scale
, which sets theBBMOD_U_TEXTURE_SCALE
uniform. - Added new function
bbmod_shader_set_bones
, which sets theBBMOD_U_BONES
uniform. - Added new function
bbmod_shader_set_batch_data
, which sets theBBMOD_U_BATCH_DATA
uniform. - Added new function
bbmod_shader_set_instance_id
, which sets theBBMOD_U_INSTANCE_ID
uniform. - Added new function
bbmod_shader_set_material_index
, which sets theBBMOD_U_MATERIAL_INDEX
uniform. - Added new function
bbmod_shader_set_base_opacity_multiplier
, which sets theBBMOD_U_BASE_OPACITY_MULTIPLIER
uniform. - Added new function
bbmod_shader_set_normal_smoothness
, which sets uniformsBBMOD_U_NORMAL_W
andBBMOD_U_IS_ROUGHNESS
. - Added new function
bbmod_shader_set_normal_roughness
, which sets uniformsBBMOD_U_NORMAL_W
andBBMOD_U_IS_ROUGHNESS
. - Added new function
bbmod_shader_set_specular_color
, which sets uniformsBBMOD_U_MATERIAL
andBBMOD_U_IS_METALLIC
. - Added new function
bbmod_shader_set_metallic_ao
, which sets uniformsBBMOD_U_MATERIAL
andBBMOD_U_IS_METALLIC
. - Added new function
bbmod_shader_set_subsurface
, which sets theBBMOD_U_SUBSURFACE
uniform. - Added new function
bbmod_shader_set_emissive
, which sets theBBMOD_U_EMISSIVE
uniform. - Added new function
bbmod_shader_set_lightmap
, which sets theBBMOD_U_LIGHTMAP
uniform. - Added new function
bbmod_shader_set_base_opacity_uv
, which sets theBBMOD_U_BASE_OPACITY_UV
uniform. - Added new function
bbmod_shader_set_normal_w_uv
, which sets theBBMOD_U_NORMAL_W_UV
uniform. - Added new function
bbmod_shader_set_material_uv
, which sets theBBMOD_U_MATERIAL_UV
uniform. - Added new function
bbmod_shader_set_alpha_test
, which sets theBBMOD_U_ALPHA_TEST
uniform. - Added new function
bbmod_shader_set_cam_pos
, which sets theBBMOD_U_CAM_POS
uniform. - Added new function
bbmod_shader_set_zfar
, which sets theBBMOD_U_ZFAR
uniform. - Added new function
bbmod_shader_set_exposure
, which sets theBBMOD_U_EXPOSURE
uniform. - Added new function
bbmod_shader_set_soft_distance
, which sets theBBMOD_U_SOFT_DISTANCE
uniform. - Added new function
bbmod_shader_set_fog
, which sets uniformsBBMOD_U_FOG_COLOR
,BBMOD_U_FOG_INTENSITY
,BBMOD_U_FOG_START
andBBMOD_U_FOG_RCP_RANGE
. - Added new function
bbmod_shader_set_ambient_light
, which sets uniformsBBMOD_U_LIGHT_AMBIENT_UP
,BBMOD_U_LIGHT_AMBIENT_DOWN
andBBMOD_U_LIGHT_AMBIENT_DIR_UP
. - Added new function
bbmod_shader_set_directional_light
, which sets uniformsBBMOD_U_LIGHT_DIRECTIONAL_DIR
andBBMOD_U_LIGHT_DIRECTIONAL_COLOR
. - Added new function
bbmod_shader_set_ssao
, which sets theBBMOD_U_SSAO
uniform. - Added new function
bbmod_shader_set_ibl
, which sets uniformsBBMOD_U_IBL_ENABLE
,BBMOD_U_IBL_TEXEL
andBBMOD_U_IBL
. - Added new function
bbmod_shader_set_punctual_lights
, which sets uniformsBBMOD_U_LIGHT_PUNCTUAL_DATA_A
andBBMOD_U_LIGHT_PUNCTUAL_DATA_B
. - Added new function
bbmod_shader_set_shadowmap_bias
, which sets theBBMOD_U_SHADOWMAP_BIAS
uniform. - Added new function
bbmod_shader_set_hdr
, which sets theBBMOD_U_HDR
uniform. - Method
set_texture_offset
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_texture_offset
instead. - Method
set_texture_scale
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_texture_scale
instead. - Method
set_bones
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_bones
instead. - Method
set_batch_data
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_batch_data
instead. - Method
set_alpha_test
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_alpha_test
instead. - Method
set_cam_pos
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_cam_pos
instead. - Method
set_exposure
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_exposure
instead. - Method
set_set_instance_id
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_instance_id
instead. - Method
set_set_material_index
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_material_index
instead. - Method
set_set_ibl
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_ibl
instead. - Method
set_ambient_light
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_ambient_light
instead. - Method
set_directional_light
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_directional_light
instead. - Method
set_punctual_lights
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_punctual_lights
instead. - Method
set_fog
ofBBMOD_BaseShader
is now deprecated! Please use the new functionbbmod_shader_set_fog
instead. - Method
set_normal_smoothness
ofBBMOD_DefaultShader
is now deprecated! Please use the new functionbbmod_shader_set_normal_smoothness
instead. - Method
set_specular_color
ofBBMOD_DefaultShader
is now deprecated! Please use the new functionbbmod_shader_set_specular_color
instead. - Method
set_normal_roughness
ofBBMOD_DefaultShader
is now deprecated! Please use the new functionbbmod_shader_set_normal_roughness
instead. - Method
set_metallic_ao
ofBBMOD_DefaultShader
is now deprecated! Please use the new functionbbmod_shader_set_metallic_ao
instead. - Method
set_subsurface
ofBBMOD_DefaultShader
is now deprecated! Please use the new functionbbmod_shader_set_subsurface
instead. - Method
set_emissive
ofBBMOD_DefaultShader
is now deprecated! Please use the new functionbbmod_shader_set_emissive
instead. - Method
set_lightmap
ofBBMOD_DefaultLightmapShader
is now deprecated! Please use the new functionbbmod_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
ofBBMOD_TerrainMaterial
, which returned instances of `BBM...
3.19.3
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 formatsBBMOD_VFORMAT_DEFAULT_COLOR
,BBMOD_VFORMAT_DEFAULT_COLOR_ANIMATED
,BBMOD_VFORMAT_DEFAULT_COLOR_BATCHED
.