Commit Graph

131 Commits

Author SHA1 Message Date
Miodrag Milanovic
b1d6f6d63f Cleanups and version bump 2016-01-27 08:12:00 +01:00
Miodrag Milanovic
9425c141de fix error (nw) 2016-01-27 06:56:44 +01:00
Miodrag Milanović
8b283b9753 Merge pull request #587 from ImJezze/pull
HLSL: NTSC and color convergence refactoring
2016-01-27 06:46:02 +01:00
ImJezze
a5fb439705 Cleanup (nw) 2016-01-26 22:14:41 +01:00
ImJezze
d516871e6f NTSC Refactoring and Options
- 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)
2016-01-25 22:02:24 +01:00
Miodrag Milanovic
0260e5b299 fix compile for windows (nw) 2016-01-24 10:17:55 +01:00
ImJezze
ded9493cb0 Fixed YIQ passes
- 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
2016-01-09 16:41:53 +01:00
ImJezze
37b596b7b4 Refactored color converge
- 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
2016-01-09 16:15:45 +01:00
Miodrag Milanovic
ce75a5d682 removed memory tracking (nw) 2016-01-08 12:41:13 +01:00
ImJezze
1cacb7d040 Refactoring (nw)
- restructured bloom level size and weight uniforms
2016-01-03 16:20:27 +01:00
ImJezze
a2c7b61daa Refactoring
- 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
2015-12-31 16:59:23 +01:00
ImJezze
eea40fd0e4 Cleanup (nw)
- removed unused pincushion.fx
2015-12-31 16:32:35 +01:00
Miodrag Milanovic
4afd75e2fd Cleanups and version bump 2015-12-30 08:18:51 +01:00
ImJezze
ff77b7897b Cleanup (nw)
- 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
2015-12-26 12:27:07 +01:00
ImJezze
1b373eb812 Extended Shadow Mask and Bloom functionality
- 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
2015-12-25 20:02:47 +01:00
ImJezze
099f547d05 Fixed HLSL for LCD screen type
- 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
2015-12-24 14:06:01 +01:00
ImJezze
b1f1300517 Made defocus strength equal for x/y and independent from screen size
- 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
2015-12-20 13:57:28 +01:00
Miodrag Milanovic
3e5898124e some core c++11 narrowing fixes (nw) 2015-12-04 15:03:26 +01:00
Miodrag Milanovic
0825ce4f3b Cleanups and version bump 2015-11-25 08:22:24 +01:00
ImJezze
1cda42b22e Fixed missing shadow mask
- fixed missing shadow mask texture when switching between window mode
and full screen
2015-11-20 12:42:19 +01:00
ImJezze
0095c77163 Cleanup (nw)
- removed some tabs at line ends
2015-11-18 18:09:09 +01:00
ImJezze
d5c6dc78e9 Cleanup
- 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
2015-11-18 18:01:01 +01:00
ImJezze
8d3ef79c0f Fixed changed screen adjustment for multi screens
- fixed changed screen adjustment for multi screens
2015-11-17 23:50:19 +01:00
ImJezze
94453b474d Fixed reset of HLSL settings
- fixed bug that resets the HLSL settings when switching between window
mode and fullscreen
2015-11-17 19:59:54 +01:00
ImJezze
8be53c28f0 Changed screen adjustment for HLSL
- 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
2015-11-17 19:37:56 +01:00
ImJezze
5200f15ace Merge remote-tracking branch 'remotes/mamedev/master' 2015-11-15 13:07:26 +01:00
ImJezze
2844aa7b02 Fixed HLSL visibility when toggling off/on
- sliders will be hidden when toggled off and will be shown when toggled
on again
2015-11-15 12:04:25 +01:00
ImJezze
8446d718bb Fixed missing shadow mask texture when enabling HLSL via shortcut keys
- fixed creation order of D3D and HLSL resources
2015-11-14 21:59:18 +01:00
Miodrag Milanovic
02f128df25 more cleanups and fix (nw) 2015-11-11 17:19:26 +01:00
ImJezze
e57eb2c76b Renamed *.c to *.cpp (nw)
- renamed *.c to *.cpp of changed files to be able to merge with base
master
2015-11-09 09:08:10 +01:00
Miodrag Milanovic
7c19aac60e Rename *.c -> *.cpp in our source (nw) 2015-11-08 12:56:12 +01:00