Skip to content

Commit

Permalink
Fix bugs, increase version to 3.21.2, add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kraifpatrik committed Apr 18, 2024
1 parent fd99721 commit 2a8a1dc
Show file tree
Hide file tree
Showing 51 changed files with 201 additions and 184 deletions.
317 changes: 158 additions & 159 deletions BBMOD_GML/BBMOD.resource_order

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/amazonfire/options_amazonfire.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/android/options_android.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/html5/options_html5.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/ios/options_ios.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/linux/options_linux.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/mac/options_mac.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/operagx/options_operagx.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/tvos/options_tvos.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/windows/options_windows.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/windowsuap/options_windowsuap.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ function BBMOD_ColorGradingEffect(_lut=undefined)
surface_set_target(_surfaceDest);
shader_set(BBMOD_ShColorGrading);
texture_set_stage(__uLUT, LUT);
gpu_push_state();
gpu_set_tex_filter_ext(__uLUT, false);
draw_surface(_surfaceSrc, 0, 0);
gpu_pop_state();
shader_reset();
surface_reset_target();
return _surfaceDest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function BBMOD_LensDistortionEffect(_strength=0.0, _zoom=1.0)

static draw = function (_surfaceDest, _surfaceSrc, _depth, _normals)
{
if (Strength <= 0.0)
if (Strength == 0.0)
{
return _surfaceSrc;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ function BBMOD_NormalDistortionEffect(_texture=pointer_null, _strength=1.0)

static draw = function (_surfaceDest, _surfaceSrc, _depth, _normals)
{
if (Texture == pointer_null)
if (Texture == pointer_null
|| Strength == 0.0)
{
return _surfaceSrc;
}
Expand Down
16 changes: 13 additions & 3 deletions BBMOD_GML/scripts/BBMOD_SunShaftsEffect/BBMOD_SunShaftsEffect.gml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// @module PostProcessing

/// @func BBMOD_SunShaftsEffect([_lightDir[, _radius[, _color[, _blurSize[, _blurStep[, _blendMode]]]]]])
/// @func BBMOD_SunShaftsEffect([_lightDir[, _radius[, _color[, _blurSize[, _blurStep[, _blendMode[, _lensDirtStrength]]]]]]])
///
/// @extends BBMOD_PostProcessEffect
///
Expand All @@ -19,13 +19,18 @@
/// the quality. Defaults to 0.01 (high quality).0
/// @param {Constant.BlendMode} [_blendMode] The blend mode used to combine the
/// sun shafts with the scene. Good options are `bm_add` (default) and `bm_max`.
/// @param {Real} [_lensDirtStrength] Modules the strength of the lens dirt
/// effect when applied to sun shafts. Defaults to 1.
///
/// @see BBMOD_PostProcessor.LensDirtStrength
function BBMOD_SunShaftsEffect(
_lightDir=undefined,
_radius=0.1,
_color=undefined,
_blurSize=100,
_blurStep=0.01,
_blendMode=bm_add
_blendMode=bm_add,
_lensDirtStrength=1.0
) : BBMOD_PostProcessEffect() constructor
{
/// @var {Struct.BBMOD_Vec3} The direction in which the light is coming.
Expand Down Expand Up @@ -53,6 +58,11 @@ function BBMOD_SunShaftsEffect(
/// with the scene. Good options are `bm_add` (default) and `bm_max`.
BlendMode = _blendMode;

/// @var {Real} Modules the strength of the lens dirt effect when applied to
/// sun shafts. Default value is 1.
/// @see BBMOD_PostProcessor.LensDirtStrength
LensDirtStrength = _lensDirtStrength;

/// @var {Id.Surface}
/// @private
__surWork1 = -1;
Expand Down Expand Up @@ -141,7 +151,7 @@ function BBMOD_SunShaftsEffect(
texture_set_stage(__uLensDirtTex, PostProcessor.LensDirt);
var _uvs = texture_get_uvs(PostProcessor.LensDirt);
shader_set_uniform_f(__uLensDirtUVs, _uvs[0], _uvs[1], _uvs[2], _uvs[3]);
shader_set_uniform_f(__uLensDirtStrength, PostProcessor.LensDirtStrength);
shader_set_uniform_f(__uLensDirtStrength, PostProcessor.LensDirtStrength * LensDirtStrength);
draw_surface_ext(__surWork2, 0, 0, 2, 2, 0, c_white, 1.0);
shader_reset();
gpu_pop_state();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ vec3 ColorGrade(vec3 color, sampler2D lut)

void main()
{
vec3 color = texture2D(gm_BaseTexture, v_vTexCoord).rgb;

//#ifndef _YY_GLSLES_
// color = ColorGrade(color, u_texLUT);
//#endif

gl_FragColor.rgb = color;
vec3 color = clamp(texture2D(gm_BaseTexture, v_vTexCoord).rgb, vec3(0.0), vec3(1.0));
gl_FragColor.rgb = ColorGrade(color, u_texLUT);
gl_FragColor.a = 1.0;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs_src/Changelog/Changelog3.21.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog 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.

* 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.
1 change: 1 addition & 0 deletions docs_src/Changelog/Changelog_.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
In this section you can find changelogs for all releases of BBMOD since 3.0.0.

## Contents
* [3.21.2](./Changelog3.21.2.html)
* [3.21.1](./Changelog3.21.1.html)
* [3.21.0](./Changelog3.21.0.html)
* [3.20.2](./Changelog3.20.2.html)
Expand Down
2 changes: 1 addition & 1 deletion docs_src/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# BBMOD
Welcome to the official documentation of BBMOD 3.21.1!
Welcome to the official documentation of BBMOD 3.21.2!

BBMOD is an advanced 3D rendering solution for GameMaker. It consists of a
custom model, animation and material formats, a model converter (BBMOD CLI),
Expand Down
3 changes: 2 additions & 1 deletion gmdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "BBMOD Docs",
"author": "BlueBurn",
"prefix": ["bbmod", "__bbmod"],
"version": "3.21.1",
"version": "3.21.2",
"analytics": "",
"api": {
"rating": "/bbmod/page_rating.php"
Expand All @@ -15,6 +15,7 @@
"Changelog": {
"file": "Changelog/Changelog_.md",
"pages": {
"3.21.2": "Changelog/Changelog3.21.2.md",
"3.21.1": "Changelog/Changelog3.21.1.md",
"3.21.0": "Changelog/Changelog3.21.0.md",
"3.20.2": "Changelog/Changelog3.20.2.md",
Expand Down

0 comments on commit 2a8a1dc

Please sign in to comment.