summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl
Commit message (Collapse)AuthorAgeFilesLines
* Removed hacks for vector screens from shaders (nw) ImJezze2016-04-136-64/+19
| | | | | - added handling of texture coordinates for vector screens to core render - added handling of orientation/rotation for vector screens to D3D renderer
* Get NTSC working in both bgfx and d3d, nw therealmogminer@gmail.com2016-03-291-17/+9
|
* Refactored Bloom ImJezze2016-03-281-125/+199
| | | | | | | - reduced raster bloom level to 8 - extended vector bloom level to 15 - changed vector bloom to be less blocky - removed bloom_lvl9_weight and bloom_lvl10_weight options
* Added oversampling option ImJezze2016-03-251-2/+0
| | | | - and some cleanup
* Scanline Variation ImJezze2016-03-151-3/+4
| | | | - added option for scanline variation
* Cleanup (nw) ImJezze2016-03-131-2/+2
| | | | | | | - options are reset to loaded preset when game is closed - changed default values of options to result in no effects activated - init_slider_list() does not returns but sets g_slider_list directly - removed unnecessary oriented_vector_texcoords
* Fixed mask orientation for vector screen ImJezze2016-03-121-3/+12
|
* Fixed rotated source tile mode ImJezze2016-03-121-3/+3
| | | | - and corrected aperture texture name
* Refactoring of render targes and vector texture coordinates ImJezze2016-03-1210-145/+133
| | | | | | | | - implemented proper texture coordinates for vector quad primitive - vector screen is now processed in texture coordinates - revered workaround for raster screen, which is again processed in texture coordinates - known issue: cocktail mode for vector screen looks wrong
* Cleanup primary.fx ImJezze2016-02-282-24/+84
| | | | | | | | | - split into primary.fx into 3 techniques for vector buffer, screen and UI pass - moved register_texture() for shaders outside of texture_info creation - added render_primitive parameter to register_texture(); currently unused - removed other unused register_texture() definition
* Bloom refactoring ImJezze2016-02-253-37/+44
| | | | | | | - calculation of bloom dimensions is now done only once, when render target is created - reduced blur width for non-vector screens - implemented shadow u/v option for source tile mode
* Quality and Performance improvements ImJezze2016-02-2011-763/+141
| | | | | | | | | | | | | | | | | | | | | | - HLSL now uses NPOT sized target surfaces (breaks compatibility with graphics cards based on R300/R400/NV30 and older) - HLSL target surfaces now have the size of the screen canvas - removed HLSL pre-scale factor - HLSL now uses a sharp bilinear interpolation to pre-scale textures to screen canvas size, based on [Themaister's] implementation - improved overall performance (based on the previously required pre-scale factor, you might notice a 5-50% speed-up depending on your graphics card, more if you used a higher pre-scale factor) - improved shadow mask quality (pixel-perfect) in screen-mode - fixed half source texel offset of bloom level alignment - removed ./hlsl/artwork_support folder - all shaders after pre-scale are now based on screen coordinate (workaground, till both raster and vector pass can work on texture coordinates) - disabled distortion shader for more than one screen and for artworks in full mode, does not affect artworks in copped mode (workaground, till both raster and vector pass can work on texture coordinates) - moved compute_texture_size() from texture_info to texture_manager (nw)
* Fixed Bloom Level Alignment ImJezze2016-02-073-19/+22
| | | | | | | - fixed target dimensions of bloom levels, which results in a much better alignment especially for game with very low resolution (therefore current bloom settings might look a little less intense than before) - small cleanups (nw)
* Improved Scanline Simulation ImJezze2016-02-072-20/+32
| | | | | | | | | | - changed the amount of scanline darkness, a setting of 1.0 now becomes fully black (to get the same result as before half your current setting) - scanline height now depends on the brightness of the underlying color - the amount of the scanline brightness and overdrive now depends on the scanline darkness - renamed 'Scanline Screen Height' to 'Scanline Screen Scale' and 'Scanline Indiv. Height' to 'Scanline Height'
* Fixed missing const (nw) ImJezze2016-01-261-0/+1
|
* Cleanup (nw) ImJezze2016-01-261-13/+14
|
* NTSC Refactoring and Options ImJezze2016-01-254-219/+134
| | | | | | | | | | | | | | - merged YIQ encode and decode pass into one NTSC pass - added options for most NTSC settings - reduced sample count to 64 - changed default O value to 0 - fit NTSC signal jitter between a reasonable limit of 0 and 1 - fit A and B value between a reasonable limit of -1 and 1 - fit scanline jitter between a reasonable limit of 0 and 1 - added hum bar simulation based on [MooglyGuy's] GLSL port of the mame shader pipeline - added monochrome-chessboard.png - added slot-mask-aligned.png (to simulate a TFT LCD)
* Fixed YIQ passes ImJezze2016-01-092-74/+115
| | | | | | | | | | - fixed half texel offset - readded usage of A value in encode/decode pass - readded jitter of B value in encode/decode pass - readded usage of P value in encode pass - fixed not set O value uniform for decode pass - removed duplicate YIQ option definition - changed default of O value back to 1.0
* Refactored color converge ImJezze2016-01-091-40/+52
| | | | | | | | - color converge is now independent from ratio - the radial converge now "translates" the most outer pixel as thay would be translated by the linar converge with the same amount - color converge is now limited to a maximum of 10 - added color converge pass to vector rendering
* Refactoring (nw) ImJezze2016-01-032-72/+76
| | | | - restructured bloom level size and weight uniforms
* Refactoring ImJezze2015-12-315-65/+33
| | | | | | | | | | | | - replaced shader parameters OrientationSwapXY xor RotationSwapXY by SwapXY - made shader parameters SourceDims, SourceRect, TargetDims, ScreenDims, QuadDims and SwapXY available for all shaders - color convolution, defocus and phosphor pass will now be skipped if all influencing parameters are 0 - removed unused bloom_texture and bloom_target arrays from cache_target class - fixed half texel offset in prescale.fx
* Cleanup (nw) ImJezze2015-12-3116-217/+122
| | | | - removed unused pincushion.fx
* Cleanup (nw) ImJezze2015-12-265-24/+28
| | | | | | - renamed shadow_mask_type to shadow_mask_tile_mode - renamed bloom_type to bloom_blend_mode - implemented "Source" shadow mask tile mode for artwork_support/post.fx
* Extended Shadow Mask and Bloom functionality ImJezze2015-12-253-57/+102
| | | | | | | | | | | | - added shadow mask type option to choose between "Screen" and "Source" tile mode ("Screen" is the default as before) - added bloom type option to choose between "Addition" and "Darken" blend mode ("Addition" is the default as before) - the alpha channel of a shadow mask is now filled with the background color of the screen by the amount of the inverted alpha value - added monochrome-matrix.png which can be used in combination with "Source" tile mode and "Darken" blend mode to simulate a STN LCD, for example
* Fixed HLSL for LCD screen type ImJezze2015-12-241-3/+2
| | | | | | - fixed wrong detection of vector screen, which meant that a LCD screen was also detected as vector screen - re-enabled scan-line and other CRT related sliders for LCD screens
* Made defocus strength equal for x/y and independent from screen size ImJezze2015-12-201-50/+51
| | | | | | | | - defocus is now independent from screen size and ratio - horizontal and vertical defocus now have the same strength - replaced asymmetric defocus kernel by a symmetric kernel - defocus is now limited to a maximum of 10 - added shader uniforms for orientation and rotation settings
* Cleanup (nw) ImJezze2015-11-181-1/+1
| | | | - removed some tabs at line ends
* Cleanup ImJezze2015-11-181-1/+1
| | | | | | | | - fixed not used HLSL settings from <custom>.ini if MAME was started without driver parameter - removed default values from HLSL sliders, the defaults here are more like null values to hint when an effect would be disable - slightly changed default HLSL settings
* Changed screen adjustment for HLSL ImJezze2015-11-172-6/+78
| | | | | | | | - screen adjustment (scale, offset) can now be handled by the respective render API itself (default behavior is as before) - D3D (if HLSL) is activated handles screen adjustment by itself within the shader, which fixes the odd behavior of some effects (e.g. round corners) when screen scale and offset is used
* Cleanup ImJezze2015-11-071-2/+3
| | | | | | - removed duplicate prescale fields - made visibility of HLSL options depending on screen type - disabled scanlines for LCD screen type
* Cleanup ImJezze2015-10-261-1/+1
| | | | | - some renamings - reverted one unwanted change in vector.fx
* Fixed Vector Intensity and Flicker ImJezze2015-10-251-9/+13
| | | | | | - fixed vector intensity in vector.fx - fixed vector flicker in vector.c - change range of vector flicker option from 0 - 100 to 0.00 - 1.00
* Small Fixes ImJezze2015-10-202-16/+21
| | | | | | - fixed position of reflection effect for vector graphics - fixed size of rounded corners - fixed very small black border
* Fixed Aspect Ratios ImJezze2015-10-191-10/+11
| | | | - fixed aspect ratios in special post.fx shader for artwork support
* Artwork Support ImJezze2015-10-184-3/+579
| | | | | | | - added special post.fx and distortion.fx shader, which support enabled artworks, but they cannot apply some of the previously implemented corrections (e.g. bloom staircase artifacts when screen is curved, elliptic rounded corners when aspect ratio is not 4:3)
* Cleanup ImJezze2015-10-181-41/+35
| | | | | | | - changed default values of curvature, vignetting, reflection, round corner and smooth border to 0 - reverted compute_size_subroutine() back to non static - removed some test code
* Bloom Overdrive ImJezze2015-10-101-1/+12
| | | | | | | - added experimental bloom overdrive effect and options, this effect allows to overdrive pure colors like red, green and blue to become more brighter - added lcd.ini to parse_standard_inis()
* Smooth Borders ImJezze2015-10-091-3/+3
| | | | | | | | - enabled smooth border effect and added option, its amount is limited by the amount of rounded corners - added raster.ini to parse_standard_inis() - merged vector and raster bloom options, use vector.ini or raster.ini to distinguish
* Small fixes ImJezze2015-10-042-23/+15
| | | | | | | - fixed defocus strength with difference prescales - removed default screen ratio of 4:3, ratio is now based on the screen quad size - reverted some space to tab changes
* Refactoring, Fixes and Cleanup ImJezze2015-09-267-269/+437
| | | | | | | | | | | | | | | | | - added distortion pass, which is applied after the bloom pass - moved vignetting, curvature, round corners and reflection effect to distortion pass - disabled distortion pass for multi screens and activated artworks due to not yet fixed misalignments - disabled scanlines for vector rendering in post pass shader - removed prescale knowledge from downsample, bloom and post pass shader - fixed half pixel offset in most shaders - fixed position of reflection effect when screen is rotated or flipped - fixed roundness of round corners in any aspect ratio - fixed shadow mask bleeding (nearly completly) - added bounds() and screen_bounds() getter to layout_view - added current_view() getter to render_target - some cleanup and refactoring
* Refactoring and Fixes ImJezze2015-08-026-57/+50
| | | | | | | | | | | | | | - removed position offset in post.fx - fixed texture offset caused by 0th level of bloom.fx - fixed texture offset caused by focus.fx - changed Passthrough parameter in phosphor.fx to boolean - simplified defocus pass function and calling it twice - removed CU_PHOSPHOR_IGNORE (Passthrough) uniform, which was only used in phosphor pass function and is now directly set - added CU_TARGET_DIMS (TargetDims) uniform based on the current render target - fixed missing Prescal parameter in downsample pass function - some code cleanup
* Vector curvature correction ImJezze2015-07-191-23/+45
| | | | | - corrected vector curvature on x-axis when screen dims and render target dims differ (there is still a difference on y-axis)
* Post Pass effects for Vector rendering ImJezze2015-07-121-2/+6
| | | | | | - added support for post pass effects for vector rendering (does not work properly in full screen mode, yet) - made texture_info::compute_size_subroutine() function public static
* Refactoring ImJezze2015-07-114-146/+20
| | | | | | | | - separated downsample pass and bloom pass into two function calls - removed/replaced simple.fx by using primary.fx to render on screen - changed PostPass parameter of primary.fx to boolean - simplified bloom.fx and downsample.fx, Prescale parameter is now set correctly from outside depending on raster/vector rendering
* Fixed misaligned scanlines with odd resolutions ImJezze2015-05-301-1/+1
| | | | | - fixed misaligned scanline with odd resolutions caused by centered coordinates
* Merge pull request #190 from ImJezze/master David Haywood2015-05-271-42/+43
|\ | | | | Changed vignetting and fixed rounded corners
| * Quick fix ImJezze2015-05-241-0/+3
| | | | | | | | - something was messed up on the last commit
| * Fixed roundness of rouned corners ImJezze2015-05-241-29/+29
| | | | | | | | | | | | | | - fixed roundness of rounded corners; the default aspect ratio of 4:3 should not be stretched anymore when the source has another ratio - disabled blurring of rounded corners - some cleanup
| * Changed vignetting simulation ImJezze2015-05-221-15/+13
| | | | | | | | | | - removed screen ratio influence - changed radius, blur and intensity
* | update in agreement with ImJezze (nw) Miodrag Milanovic2015-05-245-5/+5
|/