summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/effects
Commit message (Collapse)AuthorAgeFilesLines
* Major D3D and BGFX code refactoring and bug fixes: (#10858) [Ryan Holtz] MooglyGuy2023-01-29100-375/+494
| | | | | | | | | | | * render/bgfx: Improved clearing and blending. Added prescale support. Fixes MT07586, MT07587, MT08084. * render/bgfx: Fixed blend and tint handling. (Fixes Github #1953). * render/bgfx/blendreader.cpp: Support non-separated blend mode specification for BGFX effects. * render/bgfx: Reworked how horizontally-padded screen textures are handled. Likely fixes MT08512 and MT08505. * render/bgfx: Ensure that a texture's width margin is updated in all cases. * render/d3d/d3dhlsl.cpp: Fixed tinting in HLSL post-processing mode. * render/d3d/d3dhlsl.cpp: Avoid most redundant state-setting calls. Reduces D3D API calls by about 90% on fruit machine drivers. * render/d3d/d3dhlsl.cpp: Assign SourceDims and QuadDims uniforms to only those effects that use them. * machine/laserdsc.cpp: Always add video quad to screen container, adjust tint based on m_videoenable instead.
* Revert "-bgfx: Adjusted per-pass blending handling - fixes MT07586 and ↵ MooglyGuy2022-12-264-127/+10
| | | | | MT07587. (#10747) [Ryan Holtz]" (#10748) This reverts commit 2d893a60b4675359285737be173dfa632269cab3.
* -bgfx: Adjusted per-pass blending handling - fixes MT07586 and MT07587. ↵ MooglyGuy2022-12-264-10/+127
| | | | (#10747) [Ryan Holtz]
* bgfx: crt-geom and crt-geom-deluxe improvements: (#8653) cgwg2022-07-072-0/+2
| | | | | * crt-geom-deluxe: Increased number of taps for halation and increased maximum width. * crt-geom*: Moved repeated crt-geom/crt-geom-deluxe functions into their own file. * crt-geom and crt-geom-deluxe: added support for sRGB output gamma ramp and made it the default.
* -bgfx: Added default LUT PNG, fixes LUT-effect crash. Fixed external texture ↵ MooglyGuy2022-03-121-9/+4
| | | | loading, restoring HQx filters. [Ryan Holtz] (#9401)
* srcclean: Added JSON cleaning support, and some cleanup. Vas Crabb2021-08-2098-2992/+2992
| | | | | | | | | | Made pbobble parent of bublbust, as it seems to be more widespread and more complete. Also fixed some ROM labels for bublbust. Made tbyahhoo parent of mtwinbee as the latter has substantial content removed rather than being localised, making it less complete. Applied srcclean to JSON files in bgfx subtree.
* BGFX fixes for various backends (#8469) [Ryan Holtz] MooglyGuy2021-08-202-0/+4
| | | | * Fixed palette and UYVY conversion in all backends. Fixes MT07760. * Fixed a typo in targetmanager.cpp, thanks LN for the heads-up.
* bgfx: crt-geom and crt-geom-deluxe enhancements (#7872) cgwg2021-03-205-1/+39
| | | | | | * 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.
* bgfx: crt-geom and crt-geom-deluxe enhancements (#7766) cgwg2021-02-217-116/+150
| | | | | | | 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.
* bgfx: Added lcd-grid shader. (#7691) cgwg2021-01-232-0/+64
| | | Note that this is currently only compiled for GLSL.
* -bgfx: Fixed Github issues #5830 and #5956. [Ryan Holtz] MooglyGuy2019-11-242-21/+26
|
* -bgfx: Do texture format conversion via a full-screen GPU pass. [Ryan Holtz] MooglyGuy2019-10-134-0/+201
|
* (nw) misc cleanup: Vas Crabb2018-11-041-36/+36
| | | | | | | | | | * tabify a JSON file (not currently handled by srcclean) * get rid of stray printf * µ'nSP in header comments - we do UTF-8 source * spg2xx.cpp: make room for LOG_GENERAL - it's defined as (1U << 0) if you don't give it a different value * spg2xx.h: inline on member function declarations generally doesn't do anything useful - it's implicit when the function body is inlined at declaration, and in other cases you usually want to put the inline qualifier on the definition, not the declaration * rainbow.cpp: revert mouse changes - there's no reason a Mouse Systems driver couldn't be loaded, and the Logitech mouse is Microsoft-compatible * video21.cpp: use deal/stand for blackjack control buttons now that we're not using deal for vblank
* HLSL Color Transforms and 3D LUT (#4043) Westley M. Martinez2018-10-073-2/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Port scanline modification to BGFX W. M. Martinez2018-09-142-10/+45
|
* fix some typos (#2772) Martin Lindhe2017-11-034-4/+4
|
* Fixed several small issues in HLSL/BGFX Jezze2016-09-282-0/+4
| | | | | | * fixed target texture dimension when -intoverscan is used (this fixes the appereance of scanline and shadow mask) * added target_scale and screen_count uniforms * rounded corners now remain aligned with screen bounds when -intoverscan is used (single screen only)
* Added crt-geom and crt-geom-deluxe shaders for bgfx. Jeremy Green2016-07-036-0/+200
| | | | 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.
* Fix crash when using pillarbox shaders, nw therealmogminer@gmail.com2016-05-274-0/+136
|
* Fix up bgfx NTSC shader, nw therealmogminer@gmail.com2016-04-291-4/+4
|
* bgfx: Ported xBR shaders from libretro. [Ryan Holtz, Hyllian] therealmogminer@gmail.com2016-04-2536-129/+1577
|
* Added "selection" parameter to chain input sampler ImJezze2016-04-241-0/+1
| | | | | - 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
* Fix location of shader effect, nw therealmogminer@gmail.com2016-04-211-2/+2
|
* Checkpoint 1, nw therealmogminer@gmail.com2016-04-2127-820/+875
|
* Implemented handling for u_screen_scale and u_screen_offset (nw) ImJezze2016-04-212-18/+18
|
* Refactored BGFX distortion pass (nw) ImJezze2016-04-191-11/+12
| | | | - also removed vector hack
* bgfx: Added SuperEagle shader. [Ryan Holtz] therealmogminer@gmail.com2016-04-192-0/+156
|
* -Added HQ2x, HQ3x and HQ4x shaders. [MooglyGuy,Jules Blok,Cameron ↵ therealmogminer@gmail.com2016-04-186-0/+450
| | | | Zemek,Maxim Stepin]
* Add pillarboxing shaders and layout for bgfx, nw therealmogminer@gmail.com2016-04-1612-0/+732
|
* bgfx: Add data-driven render target clearing [Ryan Holtz] therealmogminer@gmail.com2016-04-1412-30/+30
|
* Get bgfx post-processing working with laserdisc games, nw therealmogminer@gmail.com2016-03-2912-50/+51
|
* Final bgfx fixups for release therealmogminer@gmail.com2016-03-2818-7/+342
|
* Cleanup in the bgfx aisle, nw therealmogminer@gmail.com2016-03-2518-61/+297
|
* Huge cleanup of render target handling, nw therealmogminer@gmail.com2016-03-253-3/+28
|
* Update text (nw) Miodrag Milanovic2016-03-241-2/+2
|
* Add screen-specific shader chain support, nw therealmogminer@gmail.com2016-03-232-9/+12
|
* Polishing up BGFX shader system, nw therealmogminer@gmail.com2016-03-1812-126/+76
|
* More bgfx HLSL fixups, nw therealmogminer@gmail.com2016-03-1613-63/+63
|
* Add most of the rest of the D3D HLSL chain, nw therealmogminer@gmail.com2016-03-156-4/+129
|
* Add bgfx command line options, major shakeup of organization, nw therealmogminer@gmail.com2016-03-134-0/+127
|
* Add dynamic skipping of shader chain passes, nw therealmogminer@gmail.com2016-03-131-2/+1
|
* Fix up numerous bgfx shader bugs, add auto-uniform u_texsize, nw therealmogminer@gmail.com2016-03-131-3/+4
|
* Fix up a few things in chain JSON loading, nw therealmogminer@gmail.com2016-02-274-0/+97
|
* First take on render API reorg, nw therealmogminer@gmail.com2016-02-218-0/+180