Sergey Lipskiy
4911bd7eb5
Init hdRatio for depth buffer texture.
...
Fixes #2577 Mario Golf: Animated effects render in front of course
2021-10-02 20:44:52 +07:00
fzurita
35554dabf0
Fix N64 Depth compare with Adreno
2021-02-17 16:58:28 +07:00
Sergey Lipskiy
46c65776a0
Code refactor and cleanup:
...
* type cast fixes
* signed/unsigned fixes
* code formatting fixes
* class members initialization fixes
2020-11-14 16:54:28 +07:00
fzurita
f01405bc75
Implement N64 blending using framebuffer fetch extensions
2020-11-11 13:34:45 +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
fzurita
44ce554d5f
Fix issues with EGL image public API on GLES 2.0
2019-11-30 15:54:59 +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
2d712f2ae0
Rewrite textures loading and mapping:
...
- use RiceVideo method for texture size calculation.
RiceVideo uses the same method for texture dumping.
- rewrite texture mapping.
Texture Clamp-Wrap-Mirror implemented in shaders.
Problem explanation:
https://github.com/gonetz/GLideN64/issues/1885#issuecomment-485136358
Fixed various glitches with HD textures, #1885
2019-06-19 19:02:52 +07:00
Sergey Lipskiy
647f7759c2
Apply fix for GE multiplayer only for GE and PD.
...
Naboo does not use depth buffer clear with fillrect,
thus it does not allocate frame buffer for depth buffer clear.
GE multiplayer fix breaks depth compare in Naboo.
2019-02-04 20:04:48 +07:00
Sergey Lipskiy
57ad2e96c6
Fix DepthBufferList::clearBuffer() for image textures.
2018-10-17 15:52:53 +07:00
Sergey Lipskiy
f2ba87c241
Force clear depth buffer, if there is no corresponding color buffer for it.
...
Fixed GoldenEye Multiplayer - 3&4 player not rendering #1173
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
Logan McNaughton
e80577e105
Allow non-0 default framebuffer
2018-05-22 08:25:24 -06:00
Logan McNaughton
c9cf91e8da
Add support for ext_shader_framebuffer_fetch
2018-04-16 11:32:35 +07:00
Logan McNaughton
c01c0d5166
use gl_LastFragDepthARM and glTextureBarrier
2018-04-13 21:24:56 +07:00
Logan McNaughton
18e9a73eba
Cache SpecialFeatures check
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
cb90bb95ed
Cleanup FB Texture caching code
2018-02-26 21:15:51 +07:00
Sergey Lipskiy
ee60040a78
Rewrite debug logging
2017-06-25 15:02:36 +07:00
Sergey Lipskiy
21aa51fcd5
Reduce VI.height use in DepthBuffer
2017-03-16 18:50:14 +07:00
Sergey Lipskiy
dd11326115
Rewrite buffer height calculation.
2017-03-16 18:50:14 +07:00
Sergey Lipskiy
89406ddd1c
Code cleanup: remove unused move constructor for DepthBuffer
2017-02-27 21:02:57 +07:00
Sergey Lipskiy
873a830d88
Always render to FBO, even when frame buffer emulation is disabled.
2017-02-25 14:08:26 +07:00
Sergey Lipskiy
827b6bb9cd
Code refactor: replace graphics::ObjectHandle() by graphics::ObjectHandle::null
2017-02-22 16:45:27 +07:00
Sergey Lipskiy
151fdf5ecc
Remove code to clear depth image textures.
...
Depth image textures cleared by GraphicsDrawer::drawRect, as on N64.
2017-02-17 15:54:16 +07:00
Francisco Zurita
8b08bddb91
Common implementation of N64 depth compare for Full GL and GLES
...
Also, fix small typo.
2017-02-17 15:54:13 +07:00
Sergey Lipskiy
d7407d58f9
Minor code cleanup.
2017-02-12 16:10:58 +07:00
Sergey Lipskiy
b9453474b6
Fix initialization of multisample textures.
2017-02-12 16:05:02 +07:00
Logan McNaughton
1f74b9c821
Disable N64 Depth Compare if Image Textures are unsupported
...
Also disable fragment depth writing in GLES2
2017-02-09 21:54:44 +07:00
Sergey Lipskiy
df4a81bfea
Add special Parameter classes to make parametrs usage more safe.
2017-01-28 16:52:09 +07:00
Sergey Lipskiy
80ed169e24
Remove use of OpenGL.h
2017-01-22 20:43:05 +07:00
Sergey Lipskiy
4e459c7645
Change type of CachedTexture name to graphics::ObjectHandle
2017-01-21 19:48:02 +07:00
Sergey Lipskiy
f64136ff3b
Remove OpenGL from DepthBuffer.
2017-01-21 18:55:14 +07:00
Sergey Lipskiy
f147927af9
Remove OpenGL use from FrameBuffer
2017-01-21 16:35:00 +07:00
Sergey Lipskiy
e83c3489a3
Replace OGLVideo by DisplayWindow
...
Replace OGLRender by GraphicsDrawer
2017-01-16 20:56:11 +07:00
Sergey Lipskiy
09a5b414c4
Remove FBOTextureFormats usage
2017-01-16 20:56:01 +07:00
Sergey Lipskiy
43e8aef6ea
Remove old-style code.
2017-01-09 11:21:06 +07:00
Sergey Lipskiy
dcf1065957
Add textureIndices parameters
2017-01-08 17:49:47 +07:00
Sergey Lipskiy
daf6646b97
BufferManipulationObjects 2: createRenderbuffer, initRenderbuffer
2017-01-02 22:40:41 +07:00
Sergey Lipskiy
cf5e9d8ed2
BufferManipulationObjects WIP
2017-01-02 21:00:49 +07:00
Sergey Lipskiy
84b7050339
Use gfxContext in DepthBuffer
2017-01-01 22:00:15 +07:00
Sergey Lipskiy
3eb11aac82
setTextureParameters WIP
2017-01-01 21:59:54 +07:00
Logan McNaughton
ad77e3db52
Remove some GLES3_1 ifdefs
2016-11-22 12:59:15 +07:00
Sergey Lipskiy
be6179cbcc
Revert 263ddf4
because it does not work properly on old PC cards.
2016-11-14 20:45:32 +07:00
Sergey Lipskiy
263ddf4baa
Use glTexStorage2DMultisample instead of glTexImage2DMultisample for OpenGL.
...
The same code with GLES3X.
2016-11-13 11:42:14 +07:00
Francisco Zurita
478344ab5f
Fix some issues with multisampling which were causing GL errors
2016-11-04 20:05:23 +07:00
Francisco Zurita
472c31986c
Fix GL Errors in Pokemon Stadium 2 minigames.
...
Graphics became corrupt when the GL errors happened. With this change,
graphics no longer become corrupt.
2016-11-03 18:25:18 +07:00
Francisco Zurita
df366f0f6b
Fix verious GL errors in GLES 3.1 mode and Mario tennis.
2016-10-29 19:50:44 +07:00
Sergey Lipskiy
f426d61881
Correct depth buffer attachment.
...
Fixed Link's portrait is missing in the pause screen #1134
2016-09-26 17:15:47 +07:00