1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00
Commit Graph

1898 Commits

Author SHA1 Message Date
Sergey Lipskiy
f9a8ff7087 Fix texture scale in FrameBuffer::getTextureBG 2016-05-09 17:37:23 +06:00
Sergey Lipskiy
ccff245f85 Implement render to depth buffer.
Fixed shadows in Pilot Wings.
Removed special texrect for NFL Quaterback 98 monitor: it is now supported by general code
2016-05-08 17:25:22 +06:00
Sergey Lipskiy
8ab1ca7468 Code refactor: replace hack_skipVIChangeCheck and hack_ZeldaCamera by one hack_ZeldaMM 2016-05-08 16:58:21 +06:00
Sergey Lipskiy
45d9d63564 Implement frame buffer subimage copy.
When N64 game needs to apply frame buffer texture to a polygon, it
copies part of frame buffer data to texture memory. The plugin
does not copy frame buffer texture, since frame buffer texture already in video memory
and thus can be used directly.
However, sometimes polygons with frame buffer texture use texture coordinates wrap.
Wrap can't be done correct when whole frame buffer texture is used.
Thus, frame buffer subimage copy is implemented. Part of texture copied to
a new texture, which can be correctly wrapped.

Fixed PD cloacking effect, #839
2016-05-08 15:58:19 +06:00
Sergey Lipskiy
ef5af03aaa Code refactor: replace
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, frameBufferList().getCurrent()->m_FBO)
by
  frameBufferList().setCurrentDrawBuffer()
2016-05-08 13:35:17 +06:00
Sergey Lipskiy
8a9ec948d7 Minor code refactor and cleanup in FrameBuffer_ActivateBufferTexture. 2016-05-07 23:23:14 +06:00
Sergey Lipskiy
298b22a9dc Fix frame buffer texture offsetS for LOADTYPE_TILE.
Fixed Banjo-Tooie Framebuffer not working properly #651
2016-05-07 23:21:42 +06:00
Sergey Lipskiy
2054d9d689 Fix FrameBuffer::copyRdram(): fingerprint size must be not less than 4.
Fixed validity check for PD cloacking effect, #839
2016-05-07 23:20:10 +06:00
Sergey Lipskiy
05cfca2ec6 Code cleanup in OGLRender::drawTexturedRect. 2016-05-06 18:01:34 +06:00
Sergey Lipskiy
f48895c012 Remove enableFog config option, since it has no use anymore. 2016-05-05 16:40:19 +06:00
Sergey Lipskiy
0e24e6d1e8 Fix post-processing with GLES2 2016-05-05 16:40:16 +06:00
Sergey Lipskiy
e7018d3f39 Correct Combiner_Init() 2016-05-05 16:40:09 +06:00
Sergey Lipskiy
222e7d7ccb Disable fog coordinate set in LLE mode - fog coordinate calculated by RSP. 2016-05-05 16:40:03 +06:00
Sergey Lipskiy
5e57e7db0c Correct OGLRender::_setColorArray() :
enable color array if combiner or blender use shade
2016-05-05 16:39:50 +06:00
Sergey Lipskiy
ef36b70286 Force fog mode for F-Zero ucode when blender uses fog. 2016-05-05 16:39:41 +06:00
Sergey Lipskiy
0ad53ad0e8 Rewrite blending emulation:
- remove hardcoded mapping of N64 blend modes to GL blending
- add blending stage(s) to pixel shaders.
2016-05-05 16:38:59 +06:00
Sergey Lipskiy
f2ebb7d1d4 Add cycle type to combiner's key. If the same combiner is used with different cycle types, it must be compiled separately for each cycle type. 2016-05-05 16:38:54 +06:00
Sergey Lipskiy
f5310c4ba7 OGLRender::drawTexturedRect : call _updateStates only for texrect command. 2016-05-05 16:29:31 +06:00
Sergey Lipskiy
cfc7f25e1a Fix typo in gSPProcessVertex4 2016-05-05 16:28:53 +06:00
Sergey Lipskiy
773e95382e gDPLoadTile: skip tile load if tile coordinates are incorrect.
Fixed FIFA - Road to World Cup 98: black line in menu #952
2016-05-04 22:41:49 +06:00
Sergey Lipskiy
8f5a6b74b4 Fix mip-mapping for texture level 0.
Fixed World Cup 98: wrong ground (mip mapping or lod?) (regression) #858
2016-05-04 20:51:05 +06:00
Sergey Lipskiy
2649af3be3 Revert commit ebfd9b3... Enable texture mirror if real_size / size == 2
Fixed Pokemon Snap textures are upside down #859
2016-05-03 18:00:08 +06:00
Sergey Lipskiy
2cc29816f1 Fix Paper Mario - Darkness effect wrongly emulated #570 2016-04-30 20:04:24 +06:00
Sergey Lipskiy
bb4c572c88 Code cleanup: remove debug code from gDPFillRDRAM. 2016-04-26 15:11:26 +06:00
Sergey Lipskiy
bfba768bee Add FBInfo default ctor. 2016-04-23 20:58:29 +06:00
Sergey Lipskiy
92beef8b35 Correct FrameBufferToRDRAM::_prepareCopy
Fixed banjo kazoiie: puzzle in intro doesn't work anymore (regression) #966
2016-04-23 18:29:29 +06:00
Sergey Lipskiy
de4d334252 Enable doNotResetTLUTmode hack for Quake II.
Fixed Quake II Enemies Occasionally Silver. #965
2016-04-18 17:00:46 +06:00
Sergey Lipskiy
5f7cdb4cb4 gDPFullSync(): add check, that buffer copied to RDRAM is not auxiliary one.
Fixed shadows in JFG.
2016-04-17 15:31:59 +06:00
Sergey Lipskiy
731e5c259e Support correctTexrectCoords option in GUI 2016-04-16 12:28:48 +06:00
Sergey Lipskiy
6cacfa834f Support correctTexrectCoords option in mupen64plus config 2016-04-16 12:28:45 +06:00
Sergey Lipskiy
269b3c19e9 Add correctTexrectCoords option: make texrect coordinates continuous to avoid black lines between them. 2016-04-16 12:28:39 +06:00
Sergey Lipskiy
f767eb79d2 Add special blend mode for Bust-A-Move 3 DX
Fixed Bust-A-Move 3 DX: missing screens during intro #625
2016-04-16 11:01:09 +06:00
Sergey Lipskiy
9819d7a704 Correct SetDepthTextureCombiner() for GLES2 2016-04-14 22:12:48 +06:00
Sergey Lipskiy
025c9e1be2 Fix compilation with gcc 2016-04-14 22:12:45 +06:00
Sergey Lipskiy
d132a0c0a4 Support txDeposterize option in GUI. 2016-04-14 21:58:21 +06:00
Sergey Lipskiy
94fce39403 Support txDeposterize option in mupen64plus config. 2016-04-14 21:45:47 +06:00
Sergey Lipskiy
216acb88b0 Add texture deposterization step before enhancement. 2016-04-14 21:42:18 +06:00
Sergey Lipskiy
dad7fcb687 gDPSetColorImage: use VI.height instead of gDP.scissor.lry as fallback value for buffer height.
Fixed nfl quaterback 98 #316 in LLE mode
2016-04-14 16:51:07 +06:00
Sergey Lipskiy
bc80ff446a Code refactor: add TexturedRectParams::texrectCmd parameter
to distinguish calls to OGLRender::drawTexturedRect from texrect commands
and from other places.
2016-04-14 13:41:38 +06:00
Sergey Lipskiy
c68bd7ca75 Code refactor: move duplicated code from RDP_TexRect and RDP_TexRectFlip to a function. 2016-04-14 13:22:58 +06:00
Sergey Lipskiy
c095fea58a Code refactor: replace gDPTextureRectangleFlip by flip parameter in gDPTextureRectangle 2016-04-14 13:21:06 +06:00
Sergey Lipskiy
7c7a7112e7 Code cleanup: replace texrect opcode by symbolic name. 2016-04-14 12:14:10 +06:00
Francisco Zurita
1611e8dd61 fix zelda subscreen crash 2016-04-12 07:39:00 -04:00
Sergey Lipskiy
b75d661b04 Fix FrameBufferToRDRAM::_prepareCopy: do not copy more than one buffer per frame.
Fixed ogre battle 64: wrong background jpeg (regression) #957
2016-04-10 20:16:49 +06:00
Sergey Lipskiy
71e3475ccf Correct texture clamp condition in texrect. 2016-04-10 18:04:59 +06:00
Sergey Lipskiy
6e0d0432a7 Implement depth texture load for nfl quaterback 98
Fixed nfl quaterback 98: missing fb effect (whatever option used) #316
2016-04-09 21:07:55 +06:00
Sergey Lipskiy
5b4ce499c4 Add hack_doNotResetTLUTmode for Quake 64.
Fixed regressions in Mace #955 and Midway's Greatest Arcade #948
2016-04-09 12:12:41 +06:00
Sergey Lipskiy
9b9cc6d11a Fix vertex index calculation for flat shading.
Fixed gex enter the gecko: letter colors are incorrect (regression) #956
2016-04-09 11:32:31 +06:00
Sergey Lipskiy
4484bb5623 Correct texture coordinates calculation in OGLRender::drawTexturedRect :
add dsdx/dtdy instead of 1.0f

Fixed issues #27, #128, #209
2016-04-09 10:56:15 +06:00
Sergey Lipskiy
bbf8ad91e6 Don't skip texture filter when texture dump is on. 2016-04-08 12:03:22 +06:00