Skip to content

Commit b09093f

Browse files
committed
Bumped to v2.0.0
1 parent e2e91c3 commit b09093f

File tree

3 files changed

+42
-10
lines changed

3 files changed

+42
-10
lines changed

CHANGELOG.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,62 @@
44

55
* Up to date.
66

7+
## [2.0.0] - 2020-10-20
8+
9+
**NOTE**: This release contains breaking changes.
10+
11+
The parameters are basically the same but with new names. Check the [documentation](https://github.com/hiulit/Godot-3-2D-CRT-Shader/tree/master#shader-parameters).
12+
13+
### Added
14+
15+
* `curvature_x_amount` - Controls the curvature on the X axis.
16+
* `curvature_y_amount` - Controls the curvature on the Y axis.
17+
18+
### Changed
19+
20+
* Every mention to **grille** is now referred as **vertical scan lines**.
21+
22+
### Deprecated
23+
24+
* ~~`scanlines_speed`~~
25+
* ~~`move_aberration`~~
26+
* ~~`aberration_speed`~~
27+
28+
## [1.3.1] - 2020-10-19
29+
30+
### Fixed
31+
32+
* The scanlines and grille are now non-destructive. This allows to lower the opacity of the scanlines and grille without resulting in a completely black screen. Thanks to [Miltag](https://github.com/Miltage) for helping with this issue [#5](https://github.com/hiulit/Godot-3-2D-CRT-Shader/pull/5).
33+
734
## [1.3.0] - 2019-09-13
835

9-
## Added
36+
### Added
1037

1138
* New parameter: `aberration_amount` - To control the amount of aberration.
1239
* New parameter: `move_aberration` - To control the movement state of the aberration.
1340
* New parameter: `aberration_speed` - To control the speed of the moving aberration.
1441

15-
## Changed
42+
### Changed
1643

1744
* `boost` parameter now can go up to `2.0`.
1845
* `vignette` now depends on the screen size.
1946

2047
## [1.2.0] - 2019-07-18
2148

22-
## Added
49+
### Added
2350

2451
* Screen texture and scanlines are now affected by curvature.
2552
* New parameter: `grille_opacity` - To control the opacity of the grille.
2653
* New parameter: `scanlines_opacity` - To control the opacity of the scanlines.
2754
* New parameter: `scanlines_speed` - To control the speed of the scanlines.
2855
* New parameter: `screen_size` - To control how many grille lines and scanlines appear.
2956

30-
## Changed
57+
### Changed
3158

3259
* `boost` and `vignette_opacity` steps are now `0.01`.
3360
* `vignette_opacity` default value is now `0.2`.
3461

35-
## Deprecated
62+
### Deprecated
3663

3764
* Parameter: `blend_color` - No longer needed.
3865

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@ Works best in `window/stretch/mode="2d"`.
7171

7272
| Name | Type | Default | Description |
7373
| --- | --- | --- | --- |
74-
| `horizontal_scan_lines_amount` | `float` | `180.0` | Controls how many horizontal scan lines appear. |
74+
| `horizontal_scan_lines_amount` | `float` | `180.0` | Controls how many horizontal scan lines appear. Range from `0.0` to `180.0` with `0.1` steps. |
7575

7676
Setting it to your project's `windows/size/height` should work fine, but you can play with it to get the results best fitted to your liking.
7777

78+
Having fewer scan lines will make them larger, which makes it harder for the moire effect to appear.
79+
7880
### Horizontal scan lines opacity
7981

8082
| Name | Type | Default | Description |
@@ -91,10 +93,12 @@ Setting it to your project's `windows/size/height` should work fine, but you can
9193

9294
| Name | Type | Default | Description |
9395
| --- | --- | --- | --- |
94-
| `vertical_scan_lines_amount` | `float` | `320.0` | Controls how many vertical scan lines appear. |
96+
| `vertical_scan_lines_amount` | `float` | `320.0` | Controls how many vertical scan lines appear. Range from `0.0` to `320.0` with `0.1` steps. |
9597

9698
Setting it to your project's `windows/size/width` should work fine, but you can play with it to get the results best fitted to your liking.
9799

100+
Having fewer scan lines will make them larger, which makes it harder for the moire effect to appear.
101+
98102
### Vertical scan lines opacity
99103

100104
| Name | Type | Default | Description |
@@ -111,7 +115,7 @@ Setting it to your project's `windows/size/width` should work fine, but you can
111115

112116
| Name | Type | Default | Description |
113117
| --- | --- | --- | --- |
114-
| `aberration_amount` | `float` | `0.0` | Controls the amount of chromatic aberration. Range from `0.0` to `10.0` with `1.0` steps. |
118+
| `aberration_amount` | `float` | `0.0` | Controls the amount of chromatic aberration. Range from `0.0` to `10.0` with `0.01` steps. |
115119

116120
## Changelog
117121

@@ -128,6 +132,7 @@ Thanks to:
128132
* **knarkowicz** - For the orginal shader code, taken from https://www.shadertoy.com/view/XtlSD7.
129133
* [CowThing](https://github.com/CowThing) - For helping **a lot** in bringing actual distortion and many other improvements to the shader with [#1](https://github.com/hiulit/Godot-3-2D-CRT-Shader/pull/1).
130134
* [uheartbeast](https://twitter.com/uheartbeast) - For the amazing [chromatic aberration shader video tutorial](https://www.youtube.com/watch?v=-PJOHAsBcoI).
135+
* [Miltag](https://github.com/Miltage) - For helping in fixing an issue with the scan lines opacity [#5](https://github.com/hiulit/Godot-3-2D-CRT-Shader/pull/5).
131136
* [Tom (Let's GameDev)](https://twitter.com/letsgamedev) - For the amazing [CRT shader video tutorial](https://www.youtube.com/watch?v=Dn8joy4tP2Q), which I took the scan lines from.
132137

133138
## License

crt_shader.shader

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ uniform vec4 corner_color : hint_color = vec4(0.0, 0.0, 0.0, 1.0);
2020
uniform bool show_vignette = true;
2121
uniform float vignette_opacity : hint_range(0.0, 1.0, 0.01) = 0.2;
2222
uniform bool show_horizontal_scan_lines = true;
23-
uniform float horizontal_scan_lines_amount : hint_range(0.0, 180.0) = 180.0;
23+
uniform float horizontal_scan_lines_amount : hint_range(0.0, 180.0, 0.1) = 180.0;
2424
uniform float horizontal_scan_lines_opacity : hint_range(0.0, 1.0, 0.01) = 1.0;
2525
uniform bool show_vertical_scan_lines = false;
26-
uniform float vertical_scan_lines_amount : hint_range(0.0, 320.0) = 320.0;
26+
uniform float vertical_scan_lines_amount : hint_range(0.0, 320.0, 0.1) = 320.0;
2727
uniform float vertical_scan_lines_opacity : hint_range(0.0, 1.0, 0.01) = 1.0;
2828
uniform float boost : hint_range(1.0, 2.0, 0.01) = 1.2;
2929
uniform float aberration_amount : hint_range(0.0, 10.0, 0.01) = 0.0;

0 commit comments

Comments
 (0)