Commit graph

34 commits

Author SHA1 Message Date
Michael Fabian 'Xaymar' Dirks
58c8d20f01 examples: Add 'Colorize' Filter Shader 2021-06-15 21:44:23 +02:00
Michael Fabian 'Xaymar' Dirks
9314a6a94e examples: Add 'Vignette' Filter Shader 2021-06-15 21:44:23 +02:00
Michael Fabian 'Xaymar' Dirks
df53b96ef3 examples: Add 'Repeat' Filter Shader 2021-06-15 21:44:23 +02:00
Michael Fabian 'Xaymar' Dirks
5f4f6f8f19 examples: Add 'Posterize' Filter Shader 2021-06-15 21:44:23 +02:00
Michael Fabian 'Xaymar' Dirks
c9687d482d examples: Add 'Spin Blur' Transition Shader 2021-06-15 21:44:23 +02:00
Michael Fabian 'Xaymar' Dirks
a919e29692 examples: Add 'Gaussian Blur' Filter Shader 2021-06-15 21:44:23 +02:00
Michael Fabian 'Xaymar' Dirks
a1dbb2e75b examples: Improve 'crt-scanlines.effect' 2021-04-25 15:37:32 +02:00
Michael Fabian 'Xaymar' Dirks
a755809805 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 %.
2021-04-25 15:37:32 +02:00
Michael Fabian 'Xaymar' Dirks
95ae20e504 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.
2021-04-25 15:37:32 +02:00
kilin
999362b5f9
examples: Add Pixelation filter shader (#418) 2021-02-06 13:18:05 +01:00
Michael Fabian 'Xaymar' Dirks
ad249a8e73 examples: Fix typo "_Random" -> "Random"
Fixes: #356
2020-11-02 01:49:49 +01:00
Daniel Hodgson
96ea36e07a
examples: Added adjustable luminance to hexagon size (#364) 2020-11-01 17:28:45 +01:00
Daniel Hodgson
6841e883a9
examples: Fix incorrect angles for "hexagonize" effect
The value for "deg30" was incorrectly calculated as (pi / 15.0) instead of (tau / 12.0).
2020-10-31 11:28:18 +01:00
Charles Fettinger
1794a8c7dd
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.
2020-09-07 22:06:30 +02:00
Robert Moggach
f2ec4200cf
examples/sahders: Add concentric rings shader (ShaderToy: Xsl3RX) (#310) 2020-08-10 02:29:32 +02:00
Charles Fettinger
60686e7f23
examples/shaders: Add Shadertoy effects and conversion template (#270) 2020-07-14 16:59:00 +02:00
Michael Fabian 'Xaymar' Dirks
2f9eeb3e6a examples/shaders: Add new per-activation random to sliding bars transition 2020-07-06 01:27:23 +02:00
Michael Fabian 'Xaymar' Dirks
7b8774b834 gfx/shader: Inlining, std::string_view and optimizations 2020-05-31 01:41:07 +02:00
Michael Fabian 'Xaymar' Dirks
7cd14daa1f examples: Remove broken effects 2020-05-02 21:43:14 +02:00
Michael Fabian 'Xaymar' Dirks
93207d4655 gfx-shader: Actually write alpha channel to render target 2020-04-24 06:18:12 +02:00
Michael Fabian 'Xaymar' Dirks
cb215881a9 source-shader: Add ShaderToy MslfRn
Adds 'https://www.shadertoy.com/view/MslfRn' as a usable shader.
2020-04-24 01:13:34 +02:00
Michael Fabian 'Xaymar' Dirks
b765d6e745 source-shader: Add ShaderToy MslGRn
Converts 'https://www.shadertoy.com/view/MslGRn' into a usable StreamFX shader.
2020-04-24 01:13:34 +02:00
Michael Fabian 'Xaymar' Dirks
98ea37b2e2 source-shader: Add ShaderToy 3tlXWS
Converts 'https://www.shadertoy.com/view/3tlXWS' into a usable StreamFX Shader.
2020-04-24 01:13:34 +02:00
Michael Fabian 'Xaymar' Dirks
fdcecf25c9 source-shader: Add ShaderToy 3l23Rh
Converts 'https://www.shadertoy.com/view/3l23Rh' into a Shader usable by StreamFX's Shader Source.
2020-04-24 01:13:34 +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