Commit graph

28 commits

Author SHA1 Message Date
MajorPainTheCactus aca330764a Reintroduced all the standard OETF and EOTF functions for all the rec. standards
Added gamma cut off values so people can adjust the gamma switch over point between equations as the standards define
Refactored the parameters and broke out values to be more clear
2023-01-18 22:25:25 +00:00
MajorPainTheCactus f70ce8158b Removed gamma guards as they were corrupting the image as you went to the extremes of gamma - this is not what the various standard's do. I will revisit this once I figure out why they are needed and why they are corrupting the image for now they are out. 2022-11-11 22:41:24 +00:00
MajorPainTheCactus 77a6d1d561 Made the default white nits 200 and the default peak nits 1000 to better match the Samsung S95B
Removed all nit values from the presets as this is all TV dependent
2022-11-10 21:10:29 +00:00
MajorPainTheCactus e37ed7cff0 Fixed gamma in to use the proper rec. 601 transfer function 2022-10-25 22:41:35 +01:00
MajorPainTheCactus 34e0fb10d2 Added mask accurate, colour accurate switch which effects HDR and DCI-P3 to parameters so that users can choose whether they want 100% pitch black mask or more correct looking colours i.e. not so yellow-y looking greens. Defaults to latter which is the original behaviour. 2022-09-22 23:24:47 +01:00
MajorPainTheCactus 2dddb330a7 Fixed primary transforms for wide colour gamut systems such as HDR breaking the mask and resulting in muddy colours 2022-09-21 21:27:00 +01:00
MajorPainTheCactus 2f87c8f10d Fixed DCI-P3 transform error - we now have a correct DCI-P3 space 2022-09-19 20:49:34 +01:00
MajorPainTheCactus 27915dac91 Fixed 800TVL BGR aperture grille mask Recalibrated the sammy atomiswave preset that now takes advantage of the high precision gamma Reorganised the gamma parameters to be a bit more intuitive than gamma in/out - doesn't effect presets 2022-09-18 22:15:26 +01:00
MajorPainTheCactus ea2dbd1818 Fix for first output buffer precision - this caused a whole load of issues with gamma. I've reset all the gamma in values and given them a base line. This fix should give a good boost to image quality. 2022-09-17 21:24:22 +01:00
MajorPainTheCactus 4c7d11cd60 Added 1080p masks
Added OLED mask support
2022-08-19 22:16:56 +01:00
MajorPainTheCactus 23f22288d0 Updates for ease of integration into Mega Bezel - changes to default gamma values and reorganisation of sdr and hdr presets 2022-05-10 22:18:30 +01:00
MajorPainTheCactus 8691daf16e Added the colour space gamuts back in after temporarily removing them to fix bugs Added gamma out as well as renaming previous gamma to gamma in 2022-04-16 22:10:47 +01:00
MajorPainTheCactus e0fa8ba1f3 Fixed colour issues when skipping phosphor gamuts Fixed gamma curves cropping dark colours (as per spec but not wanted early on in colour correction) Fixed up SDR presets to have zero values for main colour controls apart from gamma which is moved up to try and compensate for the dimmness 2022-04-15 16:19:16 +01:00
MajorPainTheCactus 372ef75e5c Fixed phosphor gamut being applied when sRGB colour space is used Reorganised shader parameters to be more intuitive Moved base crt-sony-megatron.slngp into the shader directory to edge users away from using it directly Passed in texcoord to functions Added vertical center, vertical size, horizontal center, horizontal size, pin phase, pin amp Added gamm_correct.h for easier integration 2022-04-09 21:53:37 +01:00
MajorPainTheCactus e24239523d Fixed all the presets as I hadn't included crt-sont-megatron.slangp - oops! Added SDR versions of all the shader presets for ease of use Renamed original presets with hdr postfix Inverted HDR shader value so SDR is on 0 and HDR is on 1 2022-03-24 22:09:16 +00:00
MajorPainTheCactus aba9624731 Added black white mask on a 'hidden' value of 3.0 on CRT Type works for 4k/8K and all the TVL's Fixed up the sega virtua fighter some more - still have to cope with wider interference Removed ModInteger function 2022-03-20 21:22:06 +00:00
MajorPainTheCactus da1a96f04e Added 4K 300TVL support (8K still to do) Added Sony PVM 1910 simulation Added Virtua Fighter Arcade simulation (still a little early) Cleaned up parameters with uneeded/confusing instructions 2022-03-17 21:33:41 +00:00
MajorPainTheCactus 2237891c65 Optimised sony megatron shader by adding a three stage process and colour grading at lower source resolution
Fixed include path slashes
2022-03-14 23:22:02 +00:00
MajorPainTheCactus b2162f07af Added SDR mode Added saturation colour grade Fixed sondy pvm shader brightness 2022-03-11 00:01:10 +00:00
MajorPainTheCactus 248f0a775c Added gamma, brightness and contrast controls 2022-03-07 21:57:58 +00:00
MajorPainTheCactus 5e6351e2c7 Moved scanline_size out to main shader for easier integration with HSM 2022-03-05 15:53:41 +00:00
MajorPainTheCactus 55e0796400 Fixed gamma curve - was using sRGB now using rec.601 / rec.709 gamma curve Added NTSC-U, NTSC-J, PAL colour systems and corresponding default white points Added colour grading: white temperature, brightness, contrast 2022-03-05 15:40:20 +00:00
MajorPainTheCactus b0e9044a72 Standardized the code to the general RetroArch shaders standard 2022-02-27 12:31:28 +00:00
MajorPainTheCactus ced4c91384 Fixed a load of bugs with vertical and horizontal convergence 2022-02-26 13:06:28 +00:00
MajorPainTheCactus c36d5be84d Simplified the shader framework to have one master shader instead of three which meant I can remove a whole load of files 2022-02-25 20:33:25 +00:00
MajorPainTheCactus c511d122c1 Added Viewsonic SuperClear A90f+ simulation Added numerous shadow masks 2022-02-10 21:53:13 +00:00
MajorPainTheCactus ff7baae3d1 Fixed up the presets for Bang & Olufsen MX8000 and Sony PVM 20L4 Added ability to dial out the horizontal blur to widen black gaps Defaulted the main shaders to standard settings not for any TV 2022-02-07 22:29:54 +00:00
MajorPainTheCactus e755fbb0f2 Refactored shader to support shadow and dot masks - added crt-shadow-mask-hdr.slang, crt-dot-mask-hdr.slang Added Bang & Olufsen TV preset (shadow mask) Added Toshiba Microfilter TV preset (dot mask) Renamed crt-sony-pvm-4k-hdr.slang to more general crt-aperture-grille-hdr.slang Moved header files into an include directory 2022-02-06 22:12:18 +00:00