Commit Graph

58 Commits

Author SHA1 Message Date
Aaron Giles
2ccc0a290a bgfx: Disable lowpass filter by default by setting it to its maximum value, since it does not account for actual monitor type. We can revisit this decision in the future if better monitor information is provided from the driver. 2021-03-23 09:31:32 -07:00
cgwg
931f85ee27
bgfx: crt-geom and crt-geom-deluxe enhancements (#7872)
* Made spot size parameters adjustable also increased samples from 2 to 3 scanlines for crt-geom-deluxe.
* Made horizontal interpolation adjustable.
* bgfx crt-geom-deluxe: Made phosphor decay smoothly to zero at specified cutoff time.
* bgfx crt-geom-deluxe: Added lowpass filter.
2021-03-20 02:38:07 +11:00
cgwg
92b2921754
bgfx: crt-geom and crt-geom-deluxe enhancements (#7766)
Added a "brightness boost" feature for the shadow mask that works by making the brightness ratio between bright and dark mask pixels closer to 1 for the brighter parts of the image.

Added clamping to zero so that underscanning produces a black border.

Added a "raster bloom" effect to crt-geom-deluxe that makes the image grow slightly when the average brightness of the screen is high, mimicking a common defect in CRTs.
2021-02-21 14:47:28 +11:00
cgwg
42a2b0006b
bgfx: Added lcd-grid shader. (#7691)
Note that this is currently only compiled for GLSL.
2021-01-23 15:04:48 +11:00
Ryan Holtz
bdae1de304 -bgfx: Shader recompile after cgwg's changes. [Ryan Holtz] 2020-12-23 22:50:51 +01:00
Ryan Holtz
3fa3969c9b -bgfx: Corrected hlsl.json to apply the intended screen tint. [Ryan Holtz] 2020-06-20 15:42:50 +02:00
arbee
b575f0d00a This wasn't supposed to go in (nw) 2020-02-18 22:54:13 -05:00
arbee
e95e2a743d apple2: figured out C800 banking on the Applesurance card, it now works 100% (nw) 2020-02-18 22:51:46 -05:00
MooglyGuy
4cccc0183c -bgfx: Fixed Github issues #5830 and #5956. [Ryan Holtz] 2019-11-24 15:40:28 +01:00
Westley M. Martinez
b5a54b761c HLSL Color Transforms and 3D LUT (#4043)
* Remove broken scanline uniform from post_pass

* Add 3D LUT to HLSL

* Allow individual LUTs for screen and UI

* WIP: Port 3D LUT to BGFX

* Finish porting LUT to BGFX

* Add individual phosphor color conversion for HLSL
	new file:   hlsl/chroma.fx
		Shader for converting xyY3 to sRGB
	modified:   hlsl/phosphor.fx
		Minor changes to emphasize idea that phosphors are color
agnostic
	modified:   hlsl/post.fx
		Conversion from signal RGB to xyY3
	modified:   src/osd/modules/render/d3d/d3dhlsl.cpp
	modified:   src/osd/modules/render/d3d/d3dhlsl.h
	modified:   src/osd/windows/winmain.cpp
	modified:   src/osd/windows/winmain.h

* Add phosphor examples and update presets

* Port phosphor color shaders to BGFX

* Fix missing newlines at EOF
2018-10-07 11:42:30 -04:00
W. M. Martinez
b4888aabc0 Port scanline modification to BGFX 2018-09-14 19:00:52 -07:00
Martin Lindhe
b3c2645085 fix some typos (#2772) 2017-11-03 14:58:54 +01:00
MooglyGuy
0a7da0fb67 -bgfx: Fixed xBR-lv2-multipass shader. [Ryan Holtz] 2017-06-11 19:55:47 +02:00
MooglyGuy
8496545170 -bgfx: Fixed the following xBR shaders: xBR-lv2-fast, xBR-lv2-noblend, xBR-lv2, xBR-lv3-noblend, and xBR-lv3. [Ryan Holtz] 2017-06-10 12:52:17 +02:00
Luke Jones
631323e9c2 Updates FSF address in a few files. (#2044)
* Update hq2x.json

Correct FSF address

* Update hq3x.json

Correct FSF address

* Update hq4x.json

Correct FSF address
2017-02-06 18:50:49 -05:00
Jezze
d9ae40b9fe Reduced defocus effect to one pass (HLSL/BGFX)
- removed second defocus pass
- limited defocus stength to a maximum of 2.0
2016-10-22 22:56:16 +02:00
therealmogminer@gmail.com
3e0d522bce Fix GH#1364 [tabbycat12] 2016-09-10 10:53:48 +02:00
Jeremy Green
3697bd8cdc Added crt-geom and crt-geom-deluxe shaders for bgfx.
This includes several aperture grille / shadow mask patterns. Note that these are all designed to be used on a display with RGB subpixel order, and may thus suffer if rotated or used with a BGR display.
2016-07-03 22:43:16 +02:00
ImJezze
858560fb83 Fixed target scale of HQ3x and HQ4x chains (nw) 2016-06-18 14:34:39 +02:00
therealmogminer@gmail.com
f263110d93 Fix crash when using pillarbox shaders, nw 2016-05-27 14:45:41 +02:00
therealmogminer@gmail.com
1f1ccd9b7d Fix debug crash with bgfx screen chains 2016-05-26 21:54:03 +02:00
ImJezze
b4b6543929 Equalized options of HLSL and BGFX HLSL chain
- removed POT texture size from shadow mask in HLSL, U/V size is now simply the percentage of the actual texture size
- adjusted display names of options
2016-05-05 20:59:33 +02:00
therealmogminer@gmail.com
ff56527f39 More bgfx settings refinement, nw 2016-04-29 10:34:53 +02:00
therealmogminer@gmail.com
223a955d0b Fix up bgfx NTSC shader, nw 2016-04-29 06:58:20 +02:00
therealmogminer@gmail.com
ea6bc4d8ce bgfx: Ported xBR shaders from libretro. [Ryan Holtz, Hyllian] 2016-04-25 02:12:59 +02:00
ImJezze
07d8b25571 Added "selection" parameter to chain input sampler
- if specified all textures (.png) within the same directoy of the given texture will be selectable via slider in the UI
- also added slider for "shadow mask tile mode" to HLSL chain
2016-04-24 20:36:42 +02:00
ImJezze
b681e5dc2b Simplified min, max, default and step value handling for chain configuration
- min, max, default and step are now floating points without an addition scale factor
2016-04-22 19:32:35 +02:00
therealmogminer@gmail.com
f5aa86dfc6 Checkpoint 1, nw 2016-04-21 15:48:29 +02:00
ImJezze
b1c06acb61 Implemented handling for u_screen_scale and u_screen_offset (nw) 2016-04-21 07:52:29 +02:00
ImJezze
cd4dfca43e Refactored BGFX distortion pass (nw)
- also removed vector hack
2016-04-19 21:18:16 +02:00
therealmogminer@gmail.com
f8034ac812 bgfx: Added SuperEagle shader. [Ryan Holtz] 2016-04-19 16:29:30 +02:00
therealmogminer@gmail.com
c64b88bc78 -Added HQ2x, HQ3x and HQ4x shaders. [MooglyGuy,Jules Blok,Cameron Zemek,Maxim Stepin] 2016-04-18 19:40:07 +02:00
therealmogminer@gmail.com
e6a54bcc23 Minor fixups to pillarboxing shaders 2016-04-17 20:43:10 +02:00
therealmogminer@gmail.com
bff9111a30 Add pillarboxing shaders and layout for bgfx, nw 2016-04-16 15:30:40 +02:00
therealmogminer@gmail.com
99aa7eacd7 bgfx: Add data-driven render target clearing [Ryan Holtz] 2016-04-14 17:22:24 +02:00
therealmogminer@gmail.com
59e129f599 Reinstate scale param for bgfx texture, nw 2016-03-30 03:28:03 +02:00
therealmogminer@gmail.com
d9153eb306 Get bgfx post-processing working with laserdisc games, nw 2016-03-29 11:28:24 +02:00
therealmogminer@gmail.com
a4f615a14d Get NTSC working in both bgfx and d3d, nw 2016-03-29 01:56:37 +02:00
therealmogminer@gmail.com
c0b1182712 Final bgfx fixups for release 2016-03-28 22:58:32 +02:00
therealmogminer@gmail.com
523a552f5c Adjust some minor things in bgfx, nw 2016-03-27 19:56:49 +02:00
therealmogminer@gmail.com
ad7f0e260e Minor bgfx fixups, nw 2016-03-26 00:15:27 +01:00
therealmogminer@gmail.com
93e5a03b89 Huge cleanup of render target handling, nw 2016-03-25 16:20:12 +01:00
Miodrag Milanovic
c7fd2b5251 Update text (nw) 2016-03-24 08:20:18 +01:00
therealmogminer@gmail.com
825d575195 Fix lots of issues with bgfx 2016-03-21 03:43:02 +01:00
therealmogminer@gmail.com
1226b243a2 Make JSON error checking a lot more verbose 2016-03-19 05:44:38 +01:00
therealmogminer@gmail.com
00f83c15ae Fix screen flipping on opengl targets in bgfx, nw 2016-03-18 18:44:39 +01:00
therealmogminer@gmail.com
ea9e591a0c Polishing up BGFX shader system, nw 2016-03-18 03:21:34 +01:00
therealmogminer@gmail.com
493cf7289b More bgfx HLSL fixups, nw 2016-03-16 18:52:07 +01:00
therealmogminer@gmail.com
b212e5dc2e Add most of the rest of the D3D HLSL chain, nw 2016-03-15 05:17:38 +01:00
therealmogminer@gmail.com
9c33c40b82 Fix up NTSC shaders, nw 2016-03-13 15:51:20 +01:00