Sergey Lipskiy
0bc6cf7a11
New LLE render.
2020-04-27 17:05:42 +07:00
Sergey Lipskiy
a73da69e10
Always use clip ratio 1 for rects and screen-space triangles.
2020-04-06 20:01:54 +07:00
S2S
2c51fb096f
Magnify clipping space by ClipRatio.
...
Fixed #190 Cruis'n World: wrong logo
2020-04-06 20:01:53 +07:00
Sergey Lipskiy
022b375614
RE2 related fixes:
...
* fixed gSPModifyVertex for case when primitive depth enabled
* fixed GraphicsDrawer::isRejected for case when coordinates of vertex set by gSPModifyVertex
* fixed writeDepth() shader for RE2
Fixed various issues mentioned in #2152
2020-03-18 14:50:45 +07:00
Sergey Lipskiy
1fdd028bc6
Fix conditions to activate texturedRectDepthBufferCopy.
...
Fixed #2101 Multiplayer camera rotation issue in Conkers Bad Fur Day
2020-03-07 18:27:32 +07:00
Sergey Lipskiy
0692abea4a
Re-implement slower N64 depth compare synchronization method,
...
which requires only core OpenGL 4.2 without shader_interlock extensions.
Fixed N64 depth compare with older AMD GPU.
2020-02-09 19:03:53 +07:00
Sergey Lipskiy
25b270492e
Revert "Don't use glGetTexLevelParameteriv to determine texture size"
...
This reverts commit b31e510932
.
2019-11-30 15:31:43 +07:00
fzurita
b31e510932
Don't use glGetTexLevelParameteriv to determine texture size
2019-11-29 15:56:22 +07:00
Sergey Lipskiy
86a227308e
Implement copy depth to main depth buffer. It is necessary for correct work of some Reshade shaders.
2019-09-27 19:33:18 +07:00
Sergey Lipskiy
3d11a21a40
Correct GraphicsDrawer::isRejected.
...
According to manual, ClipRatio must be at least 2.
Fixed #2023 , Chou Kuukan Nighter Pro Yakyuu King 2 (J) missing polygons in HLE
2019-03-13 18:29:21 +07:00
Sergey Lipskiy
a40afaf5bd
Enable texturedRectDepthBufferCopy for Turok.
...
Code refactoring.
Fixed Turok 64 Missing lens flare #2009
Note: Turok lens flare works correct only when depth buffer copied from VRAM.
Software depth render produces incorrect result because it does not discard pixels,
which should be discarded by alpha test.
2019-02-22 15:45:04 +07:00
Sergey Lipskiy
5063ad7292
Fix address for depth buffer copy in texturedRectDepthBufferCopy
2019-02-22 12:17:27 +07:00
Sergey Lipskiy
2b7f78c9f8
Fix depth buffer clear when otherMode.depthCompare enabled.
...
Fixed 1080 Snowboarding (JU) FB off breaks games ( regression) #1976
2019-02-03 18:01:01 +07:00
Sergey Lipskiy
f79f8d406a
Add bgMode config setting.
2019-02-02 19:10:50 +07:00
Sergey Lipskiy
f31cb4b00d
GraphicsDrawer::drawTexturedRect - always use TexrectDrawer if m_bBGMode enabled.
2019-02-02 18:34:12 +07:00
Sergey Lipskiy
a3613b42ae
Draw backgrounds with TexrectDrawer.
2019-02-02 18:34:09 +07:00
Sergey Lipskiy
7f68ae71f1
Correct texturedRectBGCopy in order to new Bg1Cyc command work with Yoshi Story
2019-02-02 18:34:09 +07:00
Sergey Lipskiy
0d3c3c151d
Correct reject box implementation: add special flag for it in gDP.changed flags.
...
Fixed Rejection process issues #1954
2018-12-09 16:49:23 +07:00
Sergey Lipskiy
bb8c13ccce
Implement rejection processing, see 25.3.2 of programming manual
...
Fixed Mario Party: Coin Block Blitz ground flicker / darkening #1912
2018-12-06 17:31:50 +07:00
Sergey Lipskiy
087ac76536
Correct commit e4b6224
for culling in Mortal Kombat 4.
...
Disable cullboth for F3DLX.Rej version 1 since this ucode does not support cullboth.
2018-11-11 16:06:23 +07:00
Sergey Lipskiy
57ad2e96c6
Fix DepthBufferList::clearBuffer() for image textures.
2018-10-17 15:52:53 +07:00
Sergey Lipskiy
d2bca602a1
Use roundup for viewport and scissor coordinates. Fixes some issues when screen resolution is not multiple of original resolution.
2018-10-17 15:52:52 +07:00
Sergey Lipskiy
5538c7b4bb
Add support for frame buffers, which are inside of some other frame buffer.
...
Fixed Superbowling: black screen in menu and game #116
2018-10-17 15:52:51 +07:00
Sergey Lipskiy
3d46293376
Correct condition for depth buffer copy hack for Perfect dark.
...
Fixed Perfect Dark high-res mode issues #1807
Fixed Perfect Dark No text/notifications in multiplayer #1930
2018-10-16 00:07:19 +07:00
Sergey Lipskiy
e4b6224218
Disable CULL_BOTH for NON microcodes.
...
Need to find better criteria.
Fixed Black screen in mortal kombat 4 #1929
2018-10-13 19:25:32 +07:00
Sergey Lipskiy
8b9d955f7a
Fix depth buffer clear for Zelda MM.
...
Fixed Legend of Zelda: Majora's Mask Issue #1921
2018-10-05 23:57:56 +07:00
Sergey Lipskiy
9f936be57e
Correct condition for texture filtering: remove (gSP.objRendermode&G_OBJRM_BILERP) != 0 from the condition.
...
It seems that flag G_OBJRM_BILERP in objRendermode does not mean that texture will be filtered.
2018-09-30 18:03:46 +07:00
Sergey Lipskiy
6ac8efe081
Use frame buffer from input parameters when call
...
_updateScreenCoordsViewport from GraphicsDrawer::drawTexturedRect.
Fixed incorrect picture size when color buffer copied from RDRAM.
Buffer copy uses drawTexturedRect
2018-09-26 13:48:42 +07:00
Sergey Lipskiy
5e1c8a6b58
Do not use clearDepthBuffer in FillRect. Use drawRect only.
2018-09-24 22:02:25 +07:00
Sergey Lipskiy
62b8103e46
Support FRONT_AND_BACK culling mode.
...
Fixed Super Smash Brother Gfx issue on Dreamland stage #487
2018-08-24 16:16:06 +07:00
Sergey Lipskiy
e0418c3c34
Apply TexrectDrawer if next draw command is also texrect and those texrect is side-by-side with the current one.
...
It should fix performance issues with particles.
Currently works only in HLE mode.
2018-07-03 21:52:18 +07:00
Sergey Lipskiy
2322f5f53f
Implement Overscan feature.
...
Remove Crop feature.
Change settings save-load when "per game settings" enabled:
* When config dialog opens, show custom settings for the running game. If no game run yet, show main settings.
* When user press OK button, save settings to the custom ini file and to the main ini file.
2018-06-17 20:04:45 +07:00
Sergey Lipskiy
b0a575313a
Implement Factor5 ucodes for Indiana Jones/Battle of Naboo, task #1259
2018-06-16 18:41:50 +07:00
Logan McNaughton
e80577e105
Allow non-0 default framebuffer
2018-05-22 08:25:24 -06:00
Sergey Lipskiy
8212a1faf6
Fix vertex Y calculation in GraphicsDrawer::_drawThickLine
...
Fixed smoke direction in Micro Machines 64 Turbo (U) #1725
2018-05-02 20:49:36 +07:00
Sergey Lipskiy
725ff742a8
Update viewport when exiting texrect after texturedRectSpecial call.
...
Fixed Paper Mario zoom-in when Mario approaches screen #1789
2018-05-01 18:01:54 +07:00
Logan McNaughton
18e9a73eba
Cache SpecialFeatures check
2018-04-07 11:30:33 +07:00
Logan McNaughton
b49ee1dd8b
Fix GLESX clipping hack in GraphicsDrawer
2018-04-07 11:30:33 +07:00
Logan McNaughton
9c73fb27b1
Remove Image Texture requirement for some shaders
2018-04-07 11:30:33 +07:00
Joe Mattiello
9497a9b868
Add iOS system ifdefs and gles includes
2018-03-31 10:54:20 +07:00
Logan McNaughton
bdb0f7ca94
Emulate GL_DEPTH_CLAMP for GLES
2018-03-23 21:52:06 +07:00
Sergey Lipskiy
5ccc40423f
Correct screen coords viewport in TexrectDrawer::draw()
...
Fixed Mario Golf (U) bug in GLideN64 3.0 regresion #1710
2018-03-21 19:49:36 +07:00
Sergey Lipskiy
822b098d6a
Implement OSD Display: Internal Resolution and Rendering Resolution
...
Fixed #1733
2018-03-05 22:56:14 +07:00
Sergey Lipskiy
b37200239e
Fix display of texrect coordinates in debugger.
2018-03-02 21:22:24 +07:00
Sergey Lipskiy
08d3bff7ba
Process unsupported blend modes only in two cycles mode.
2018-02-23 14:06:09 +07:00
Sergey Lipskiy
8cb25b1fed
Add support for blend modes, which can't be emulated with shader blender.
...
Add a hack for blend mode 0x0150 in Tony Hawk 2: Spiderman uses the same blend mode,
but has no problems with it.
2018-02-18 20:44:11 +07:00
Sergey Lipskiy
9b2f50ca67
Fix rendering in widescreen resolutions when fb emulation disabled, #1700
2018-01-05 15:27:19 +07:00
Sergey Lipskiy
dfada113d3
Do not change current draw buffer after OSD drawing.
...
Fixed mupen64plus messages displayed upside-down.
2017-12-15 13:24:36 +07:00
Sergey Lipskiy
fa102a65c9
Do not revert Y for rects.
2017-12-15 12:38:19 +07:00
Sergey Lipskiy
26623cec1f
Code cleanup: fix issues in GLideN64 found by static code analyser.
2017-11-18 22:07:27 +07:00