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

3570 Commits

Author SHA1 Message Date
Sergey Lipskiy
b33f643905 Tuned condition for correctness of found frame buffer. 2015-05-13 10:09:50 +06:00
Sergey Lipskiy
620c809727 Fixed frame buffer height calculation. 2015-05-13 10:09:49 +06:00
Sergey Lipskiy
f66c03d2e7 Fix FillRect in Fill mode.
Fixed frame buffer clear in Lego Racers, broken after previous commit.
2015-05-13 10:09:49 +06:00
Sergey Lipskiy
de6aa21d11 Fix combiner for FILL mode. 2015-05-13 10:09:48 +06:00
Sergey Lipskiy
c9ddb8e1a6 Fix read alpha from frame buffer textures.
When gDP.otherMode.imageRead is off, alpha is replaced by the fixed value.
2015-05-13 10:09:47 +06:00
Sergey Lipskiy
562612a21a Texture load status is now set per tile. 2015-05-13 10:09:47 +06:00
Sergey Lipskiy
fe550b7b6b Code cleanup: remove duplicated code in OGL_UpdateStates(). 2015-05-13 10:09:46 +06:00
Sergey Lipskiy
70417de37c Fix viewport set for texture buffer in OGL_DrawRect(). 2015-05-13 10:09:45 +06:00
Sergey Lipskiy
cfc85d2c92 Fix frame buffer texture coordinates calculation for T1. 2015-05-13 10:09:44 +06:00
Sergey Lipskiy
5092cf5891 Code cleanup: Remove duplicated code in FrameBuffer_ActivateBufferTexture(). 2015-05-13 10:09:43 +06:00
Sergey Lipskiy
03dfe205f8 Texrect hack for 512 width.
Fixed motion blur in Rally Challenge 2000.

Need to find a proper solution.
2015-05-13 10:09:43 +06:00
Sergey Lipskiy
ad9e3d3bee Correct texture buffer shift in loadblock mode. 2015-05-13 10:09:42 +06:00
Sergey Lipskiy
f5bcc81414 Correct color buffer height calculation. 2015-05-13 10:09:41 +06:00
Sergey Lipskiy
aec5094967 Add support for 8bit frame buffers.
Fixed dynamic shadow in Banjo-Tooie
2015-05-13 10:09:41 +06:00
Sergey Lipskiy
c38958f12c Don't clear gDP.colorImage.changed flag in gDPSetColorImage.
Fixed Zelda MM motion blur.
2015-05-13 10:09:40 +06:00
Sergey Lipskiy
3f98553ad2 Correct background images usage in frame buffer emulation. 2015-05-13 10:09:39 +06:00
Sergey Lipskiy
e3c77c7b8e Don's set RSP.PCi to zero in gSPLoadUcodeEx. 2015-05-13 10:09:38 +06:00
Sergey Lipskiy
42e6208f25 Correct gSPBgRect* functions. 2015-05-13 10:09:38 +06:00
Sergey Lipskiy
58728b954c Optimize FrameBuffer_SaveBuffer code. 2015-05-13 10:09:37 +06:00
Sergey Lipskiy
880238250b Fix depth buffer initialization and clean. 2015-05-13 10:09:36 +06:00
Sergey Lipskiy
04d1bc385a Handle depth buffer clear when depth image is not set yet. 2015-05-13 10:09:36 +06:00
Sergey Lipskiy
657a576946 Fix fillcolor processing. Fillcolor has the same bitness as the color image. 2015-05-13 10:09:35 +06:00
Sergey Lipskiy
797dfad57e Frame buffer related fixes. Zelda OOT pause screen works! 2015-05-13 10:09:34 +06:00
Sergey Lipskiy
3d2083d6a4 New implementation of FrameBuffer_RenderBuffer,
via glBlitFramebuffer.
2015-05-13 10:09:34 +06:00
Sergey Lipskiy
a07555546e Frame buffer fixes 2015-05-13 10:09:33 +06:00
Sergey Lipskiy
263f4fc112 Increase strCombiner buffer. 2015-05-13 10:09:32 +06:00
Sergey Lipskiy
a03636b92f Make wrappers for frame buffer functions.
The wrappers call either OpenGL 4.x functions or FBO extensions,
depending on supported OpenGL version.
2015-05-13 10:09:31 +06:00
Sergey Lipskiy
c7e089bcaf Correct dither condition. 2015-05-13 10:09:31 +06:00
Sergey Lipskiy
b6b80d720f Make HW lighting calculation optional. 2015-05-13 10:09:30 +06:00
Sergey Lipskiy
b7e89b71b1 Fix 2 cycle texturing. 2015-05-13 10:09:29 +06:00
Sergey Lipskiy
baf51c449b Add lod calculation shader only to combiners, which use lod_frac. 2015-05-13 10:09:29 +06:00
Sergey Lipskiy
f50df09373 Remove unused shaders. 2015-05-13 10:09:28 +06:00
Sergey Lipskiy
a7968f2ca2 Implement hardware LOD frac calculation.
Two pass rendering, using FBO.
First pass: store pixel's texture coordinates in frame buffer texture.
Second pass: calculate lod using frame buffer texture.
2015-05-13 10:09:27 +06:00
Sergey Lipskiy
a6114994ad Fix noise-based dithering. 2015-05-13 10:09:26 +06:00
Sergey Lipskiy
3dc3aca3f2 Add Dump control to Debug Panel. 2015-05-13 10:09:26 +06:00
Sergey Lipskiy
97f07e38c3 Fix some type mismatch errors. 2015-05-13 10:09:25 +06:00
Sergey Lipskiy
d57cf2e3f4 Code cleanup: remove unreferenced variables. 2015-05-13 10:09:24 +06:00
Sergey Lipskiy
13ed4d4acf Fix DepthBuffer_RemoveBottom() 2015-05-13 10:09:24 +06:00
Sergey Lipskiy
212802b66c Rename Zilmar's .h file 2015-05-13 10:09:23 +06:00
Sergey Lipskiy
38d77dc432 Project renamed to GLideN64 2015-05-13 10:09:22 +06:00
Sergey Lipskiy
cfb5a0ac47 Correct RDRAMSize calculation. 2015-05-13 10:09:22 +06:00
Sergey Lipskiy
0425beb5d8 Correct fog enable/disable 2015-05-13 10:09:21 +06:00
Sergey Lipskiy
63a3cdc720 Implement Noise color input. 2015-05-13 10:09:20 +06:00
Sergey Lipskiy
08744df681 First-shot implementation of toon shading. 2015-05-13 10:09:20 +06:00
Sergey Lipskiy
876ace62c3 Implement hardware per-pixel lighting. 2015-05-13 10:09:19 +06:00
Sergey Lipskiy
28be20004d Make all combiners descendants of the abstract parent class OGLCombiner.
It makes code more clear.
2015-05-13 10:09:18 +06:00
Sergey Lipskiy
76c74b770a Remove unused functions declarations from Combiner.h 2015-05-13 10:09:18 +06:00
Sergey Lipskiy
eda6d14015 Update .gitignore 2015-05-13 10:09:17 +06:00
Sergey Lipskiy
60ee35116c Auto-format sources. 2015-05-13 10:09:16 +06:00
Sergey Lipskiy
c4d434c87e Remove unused defines from Combiner.h.
Move auxilary arrays into Combiner.cpp
2015-05-13 10:09:16 +06:00