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

465 Commits

Author SHA1 Message Date
Sergey Lipskiy
72ba52767c Fix depth buffer clear detection in gDPFillRectangle.
Automobili Lamborghini uses DEPTH_CLEAR_COLOR for pause fillrect color.
2015-05-13 10:14:34 +06:00
Sergey Lipskiy
c60624b771 Fix BG coordinates calculation again.
Better bg sprites in C&C.
2015-05-13 10:14:33 +06:00
Sergey Lipskiy
6277ea1ca7 Enable bilinear filter for sprites. 2015-05-13 10:14:32 +06:00
Sergey Lipskiy
74b0b5cf55 Fix backgrounds load. 2015-05-13 10:14:32 +06:00
Sergey Lipskiy
f40ecc7a75 Fix gDPFillRectangle for cycleType != G_CYC_FILL.
Fixed background in C&C.
2015-05-13 10:14:31 +06:00
Sergey Lipskiy
22ea72aaad Implement S2DEX_Obj_RenderMode. 2015-05-13 10:14:30 +06:00
Sergey Lipskiy
6fbdb3f8db Fix BG coordinates calculation.
Fixed C&C.
2015-05-13 10:14:30 +06:00
Sergey Lipskiy
2258583379 Correct microcode detection. 2015-05-13 10:14:29 +06:00
Sergey Lipskiy
5a5b56e4bf Add gSPSprite2DBase hack code for WCW Nitro. Disabled for now. 2015-05-13 10:14:28 +06:00
Sergey Lipskiy
8ebb081c75 Implement gSPSprite2DBase. 2015-05-13 10:14:28 +06:00
Sergey Lipskiy
642038a6fe Force depth test when depthSource == G_ZS_PRIM. 2015-05-13 10:14:27 +06:00
Sergey Lipskiy
23348b474d Fixed PrimDepth load: only 15 bits must be used.
Fixed backgrounds in Space Station Silicon Valley.
2015-05-13 10:14:26 +06:00
Sergey Lipskiy
ca17d7a19b Rewrite sprite code:
- Make code uniform.
- Removed duplicated code.
2015-05-13 10:14:25 +06:00
Sergey Lipskiy
87a348f766 Implement gSPObjSubMatrix. 2015-05-13 10:14:25 +06:00
Sergey Lipskiy
246bc396ad Fix z coordinate for gSPObjSprite and gSPBgRect1Cyc. 2015-05-13 10:14:24 +06:00
Sergey Lipskiy
2ad3f17fc4 Rewrite gSPBgRect1Cyc:
draw it as one rect. Texture coordinates will wrap if necessary.
2015-05-13 10:14:23 +06:00
Sergey Lipskiy
799638c29b Fix TextureCache::_updateBackground():
Load texture image with its actual size, not cast to power of two sizes.
This allows to wrap it easily.
2015-05-13 10:14:23 +06:00
Sergey Lipskiy
a849fb81e5 Implement Yoshi Story background copy. 2015-05-13 10:14:22 +06:00
Sergey Lipskiy
6e01ed9a34 Pass parameters to OGLRender::drawTexturedRect via special structure TexturedRectParams. 2015-05-13 10:14:21 +06:00
Sergey Lipskiy
489953e7aa Switch log lovel from LOG_WARNING to LOG_ERROR.
Set Log level to LOG_WARNING in unimplemented S2DEX functions.
2015-05-13 10:14:20 +06:00
Sergey Lipskiy
9b2d6a4740 Fix gSPObjSprite. 2015-05-13 10:14:20 +06:00
Sergey Lipskiy
972fc41c25 Code cleanup: remove unused functions gSPCopyVertex() and gSPInterpolateVertex(). 2015-05-13 10:14:19 +06:00
Sergey Lipskiy
bc1a5a1f1f Fix frame buffer allocation again.
Check for all possible intersections of frame buffers address space,
remove all buffers, intersected with the new one.
2015-05-13 10:14:18 +06:00
Sergey Lipskiy
fa5d2ce544 Correct auxiliary buffers height in gDPSetColorImage. 2015-05-13 10:14:18 +06:00
Sergey Lipskiy
cdf168e469 Correct gDP.colorImage.height calculation again.
Fixed frame buffers overflow in V-Rally 99.
2015-05-13 10:14:17 +06:00
Sergey Lipskiy
0f14cd57f4 Correct combiners when cycleType == G_CYC_1CYCLE
but second stage of combiner is not the same as the first one.
Potentially dangerous!!!
2015-05-13 10:14:16 +06:00
Sergey Lipskiy
b49e3f67fd Implement missing sprite functions. Fix existing ones. 2015-05-13 10:14:16 +06:00
Sergey Lipskiy
adca07aabe Fix S2DEX_Obj_MoveMem: move viewport added. 2015-05-13 10:14:15 +06:00
Sergey Lipskiy
1952e1b882 Code cleanup: fix idents in S2DEX.h and S2DEX2.h 2015-05-13 10:14:14 +06:00
Sergey Lipskiy
e28904874d Init gSP.objMatrix with default values in RSP_Init(). 2015-05-13 10:14:14 +06:00
Sergey Lipskiy
0205902df1 Don't set video multisampling when frameBufferEmulation enabled. 2015-05-13 10:14:13 +06:00
Sergey Lipskiy
3e65749241 Don't fix zero VI.width and VI.height
If these values are zero, it is for purpose.

Fixed depth buffer write in PD intro.
2015-05-13 10:14:12 +06:00
Sergey Lipskiy
ea713f8e0c Remove assync depth copy functionality.
It is important to copy current depth buffer to RDRAM.
Otherwise coronas in PD does not work when in movement.
2015-05-13 10:14:12 +06:00
Sergey Lipskiy
a3d702a4dd Fix detection of frame buffers address space intersection.
Fixed problem of growing frame buffers number.
2015-05-13 10:14:11 +06:00
Sergey Lipskiy
62f5d8cf4e Rewrite texturedRectDepthBufferCopy.
Fixed coronas in PD.
2015-05-13 10:14:10 +06:00
Sergey Lipskiy
6bfe8f35f2 Correct texturedRectSpecial functions. 2015-05-13 10:14:10 +06:00
Sergey Lipskiy
efdfa31eda Make FrameBuffer_CopyDepthBuffer() return bool. 2015-05-13 10:14:09 +06:00
Sergey Lipskiy
c3a8148d0e Fix DepthBufferToRDRAM::CopyToRDRAM - limit max value by 0xfffc. 2015-05-13 10:14:08 +06:00
Sergey Lipskiy
d515c5ac34 Add RDP_RepeatLastLoadBlock() function.
Needed for correct emulation of depth buffer to RDRAM copy in PD and CBFD.
2015-05-13 10:14:08 +06:00
Sergey Lipskiy
39cbd870ff Add check for NULL pointers in FrameBuffer_ActivateBufferTexture. 2015-05-13 10:14:07 +06:00
Sergey Lipskiy
cdcffd9077 Force updateFBInfo in OGLRender::_updateStates().
Fixed black textures on Conker.
2015-05-13 10:14:06 +06:00
Sergey Lipskiy
3eb40fd30a Fix texturedRectTextureCopy. Renamed it to texturedRectDepthBufferCopy. 2015-05-13 10:14:06 +06:00
Sergey Lipskiy
a6a8d810fb Fix CopyToRDRAM.
Need to set scissor off before using glBlitFramebuffer.
2015-05-13 10:14:05 +06:00
Sergey Lipskiy
b66f18b07f Rename Config.cpp to Config_[platform].cpp
Rename MicrocodeDialog.cpp to MicrocodeDialog_[platform].cpp
Correct project files.
2015-05-13 10:14:04 +06:00
Sergey Lipskiy
18437d829d Introduce texturedRectSpecial hack for special texrect modes.
Implement texturedRectShadowMap() for BAR and
texturedRectTextureCopy() for CBFD.
The late causes weird camera rotation, thus disabled.
2015-05-13 10:14:04 +06:00
Sergey Lipskiy
9cda50c677 Add RSP.romname 2015-05-13 10:14:03 +06:00
Sergey Lipskiy
c847ec9091 Don't send light data to shader if ucode does not support HWL. 2015-05-13 10:14:02 +06:00
Sergey Lipskiy
7835cfb180 Fix color image height detection for height = 1. 2015-05-13 10:14:02 +06:00
Sergey Lipskiy
3a27056759 Don't write buffer address to RDRAM for CFB buffers. 2015-05-13 10:14:01 +06:00
Sergey Lipskiy
3db3e02cab Implement CBFD microcode. 2015-05-13 10:14:00 +06:00