Commit graph

35 commits

Author SHA1 Message Date
Michael Fabian 'Xaymar' Dirks
cd00ccb94f examples: Add FXAA shader 2023-04-05 18:51:44 +02:00
Michael Fabian 'Xaymar' Dirks
1d4bc9377f examples: Add RGB<->YUV color conversion shader 2023-04-05 18:51:44 +02:00
Michael Fabian 'Xaymar' Dirks
1b573103cc examples: New examples for Shader Texture parameters 2023-04-05 18:51:43 +02:00
Radegast-FFXIV
998a72a882 examples: Add 'Bulge/Pinch', 'Wave' and 'ZigZag' 2023-04-05 18:51:24 +02:00
Radegast-FFXIV
e24c283561 examples: Add Swirl shader (#618) 2023-04-05 18:51:14 +02:00
Michael Fabian 'Xaymar' Dirks
91c9df3097 project: Apply Coding Guidelines 2023-04-05 18:51:13 +02:00
Carlos Baraza
d166a26d4c examples: Add rounded-rect Shader
Adapted from (https://github.com/Oncorporation/obs-shaderfilter/blob/master/data/examples/rounded_rect.shader) by @carlosbaraza.
2023-04-05 18:51:11 +02:00
Michael Fabian 'Xaymar' Dirks
9563754bfb examples: Add 'Colorize' Filter Shader 2023-04-05 18:51:04 +02:00
Michael Fabian 'Xaymar' Dirks
85cd74a0a2 examples: Add 'Vignette' Filter Shader 2023-04-05 18:51:04 +02:00
Michael Fabian 'Xaymar' Dirks
e0f896c02a examples: Add 'Repeat' Filter Shader 2023-04-05 18:51:04 +02:00
Michael Fabian 'Xaymar' Dirks
9f2035cb20 examples: Add 'Posterize' Filter Shader 2023-04-05 18:51:04 +02:00
Michael Fabian 'Xaymar' Dirks
a7b9e3d28f examples: Add 'Spin Blur' Transition Shader 2023-04-05 18:51:03 +02:00
Michael Fabian 'Xaymar' Dirks
2b62d9a587 examples: Add 'Gaussian Blur' Filter Shader 2023-04-05 18:51:03 +02:00
Michael Fabian 'Xaymar' Dirks
b06ec71fa3 examples: Improve 'crt-scanlines.effect' 2023-03-28 13:11:22 +02:00
Michael Fabian 'Xaymar' Dirks
8fa1ffc95a examples: Improve 'crt-curvature.effect'
The code of this effect was quite dated and no longer up to my standards of coding, and lacking pretty much all comments that explain what things do. This meant that it was not a great example by default, and couldn't be used by new Effect creators as a reference.

Also the following settings were adjusted:
- 'Strength' now ranges from 0 to 200 %.
- 'Border Color' defaults to Opaque Black.
- 'Feathering' now ranges from 0 to 100 %.
2023-03-28 13:11:22 +02:00
Michael Fabian 'Xaymar' Dirks
d2df0fa24f examples: Add base effect for common functionality
Many shader examples share quite a bit of code, and the OBS Studio parser and GPU driver shader compiler actually get rid of unused code quite well. So we can simply share the code between many examples, which drastically improves the quality of the code.
2023-03-28 13:11:22 +02:00
kilin
a7eac490d5 examples: Add Pixelation filter shader (#418) 2023-03-28 13:11:10 +02:00
Michael Fabian 'Xaymar' Dirks
efc048adcd examples: Fix typo "_Random" -> "Random"
Fixes: #356
2023-03-28 13:11:02 +02:00
Daniel Hodgson
02bdd85ed4 examples: Added adjustable luminance to hexagon size (#364) 2023-03-28 13:11:02 +02:00
Daniel Hodgson
ab2b632fb4 examples: Fix incorrect angles for "hexagonize" effect
The value for "deg30" was incorrectly calculated as (pi / 15.0) instead of (tau / 12.0).
2023-03-28 13:11:01 +02:00
Charles Fettinger
56d041e1b7 examples: Add colored and inverted luma burn varitions (#283)
Adds colored and inverted colored variations for Luma Burn, enabling some more fancy transitions with it. All variations with color support smooth fading, and allow choosing any possible color for the transition.
2023-03-28 12:52:26 +02:00
Michael Fabian 'Xaymar' Dirks
0c2d56a81a examples/shaders: Add new per-activation random to sliding bars transition 2023-03-28 12:52:13 +02:00
Michael Fabian 'Xaymar' Dirks
a2fd4dd2f6 gfx/shader: Inlining, std::string_view and optimizations 2023-03-28 12:40:45 +02:00
Michael Fabian 'Xaymar' Dirks
624570b862 examples: Remove broken effects 2023-03-28 12:40:42 +02:00
Michael Fabian 'Xaymar' Dirks
c2c5afd763 gfx-shader: Actually write alpha channel to render target 2023-03-28 12:40:39 +02:00
Michael Fabian 'Xaymar' Dirks
d42d26db3d filter-shader: Add 'semiline' effect
The 'semiline' effect blanks out horizontal lines of increasing size, with some configuration options. Example: https://cdn.xaymar.com/private/2020-04-23/2020-04-23T08-00-37_obs64_HeartyNavyblueAtlanticridleyturtle.png
2020-04-24 01:13:34 +02:00
Michael Fabian 'Xaymar' Dirks
a989709b6f examples: Fix some example shaders and add new ones
* Fixed 'Pixelator's color transition point being off-center and uncontrollable.
* Fixed 'Drunk' filter not working at all.
* Added an inverted mode to 'Luma Burn'.
* Added exponential Luma to 'Luma Burn'.
* Fixed odd color behavior in the 'Color Shift' transition by switching out HSL with HSV.
* Added a new 'Sliding Bars' transition shader, for an example of it see this clip: https://clips.twitch.tv/RacyEndearingHorseradishAMPTropPunch .
2020-04-17 11:13:36 +02:00
Michael Fabian 'Xaymar' Dirks
4fda7de573 filter-shader: New filter examples
CRT Curvature: Emulate an old CRT TVs curvature ...
CRT Scanlines: ... and emulate an old CRT TVs scanlines, rollbar and bleeding!
Hexagonize: Turn things into hexagons. You know, like the thing you see in my streams.
2020-03-28 22:19:14 +01:00
Michael Fabian 'Xaymar' Dirks
7d5c4361e3 transition-shader: New transition examples
Color Shift: Uses HSL and some math to smoothly shift Hue Saturation and Lightness between A and B.
Luma Burn: "Burns" away the Luminosity of A to reveal the B side.
Pixelator: Classic/Retro pixelation effect often seen in older games to transition between settings.
2020-03-28 20:22:42 +01:00
Michael Fabian 'Xaymar' Dirks
3432ab4c1d examples: 3D Raytracing Shader Example
Very very basic 3D raytracing, nowhere close to what people manage to do in combo productions. But it does work to some degree.
2020-01-01 16:02:45 +01:00
Michael Fabian 'Xaymar' Dirks
3cd88abeae examples: Add explanation for basic StreamFX shader files 2019-12-25 20:09:37 +01:00
Michael Fabian 'Xaymar' Dirks
133d8cf599 examples: Fix plasma UV and support for float4 2019-12-22 06:14:56 +01:00
Michael Fabian 'Xaymar' Dirks
0bf4a3ff01 examples: Improve plasma effect settings 2019-12-21 19:09:42 +01:00
Michael Fabian 'Xaymar' Dirks
3f5adab815 examples: New example source shaders 2019-12-18 07:50:49 +01:00
Michael Fabian 'Xaymar' Dirks
aa170c7c54 data: Move example data into examples/ 2019-11-18 03:03:11 +01:00