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

3627 Commits

Author SHA1 Message Date
Sergey Lipskiy
10123b8895 Check that hardware supports ImageTextures. 2015-05-13 10:10:30 +06:00
Sergey Lipskiy
10b790b787 Add VisulStudio 2010 project file. 2015-05-13 10:10:29 +06:00
Sergey Lipskiy
f151ef36ca Add shadow map shader 2015-05-13 10:10:28 +06:00
Sergey Lipskiy
83ee675716 Move shaders to separate .h file 2015-05-13 10:10:28 +06:00
Sergey Lipskiy
179d915c7b Add alpha test shader. 2015-05-13 10:10:27 +06:00
Sergey Lipskiy
898a81ecde Add possibility to switch between float and int depth texture formats 2015-05-13 10:10:26 +06:00
Sergey Lipskiy
9c508f1a9b Change to float format of depth texture 2015-05-13 10:10:25 +06:00
Sergey Lipskiy
c47ab51175 Add depth compare shader to the main program. 2015-05-13 10:10:25 +06:00
Sergey Lipskiy
2801d3745c Add glBindImageTexture and glMemoryBarrier declarations. 2015-05-13 10:10:24 +06:00
Sergey Lipskiy
3d801d66de Fix Linux debug compilation. 2015-05-13 10:10:23 +06:00
Sergey Lipskiy
d68c09c13a Add UpdateDepthInfo. 2015-05-13 10:10:23 +06:00
Sergey Lipskiy
1fc111a5c1 Add GLSL_ClearDepthBuffer() 2015-05-13 10:10:22 +06:00
Sergey Lipskiy
cd81074c9e Add ZLUT initialization. 2015-05-13 10:10:21 +06:00
Sergey Lipskiy
4660e272a0 Add depth compare shader. 2015-05-13 10:10:20 +06:00
Sergey Lipskiy
01073f40b0 Add depth texture to depth buffer. 2015-05-13 10:10:20 +06:00
Sergey Lipskiy
d9ed68199b Put noise calculation in separate pre-compiled shader. 2015-05-13 10:10:19 +06:00
Sergey Lipskiy
df6bab43f6 Put LOD calculation in separate pre-compiled shader. 2015-05-13 10:10:18 +06:00
Sergey Lipskiy
2c5e9050a0 Put light calculation in separate pre-compiled shader.
Shader compile time should decrease.
2015-05-13 10:10:18 +06:00
Sergey Lipskiy
3a0036e81d Update .gitignore 2015-05-13 10:10:17 +06:00
Sergey Lipskiy
55a14d42f0 Fix RDRAMtoFrameBuffer::CopyFromRDRAM - make it working with buffer of any size.
Mario Tennis scoreboard hack is now uses CopyFromRDRAM, so
FrameBufferToRDRAM::CopyAuxBufferToRDRAM became unused and thus removed.
2015-05-13 10:10:17 +06:00
Sergey Lipskiy
9c5b94d1f8 Fix frame buffer texture remove. 2015-05-13 10:10:16 +06:00
Sergey Lipskiy
deea78132c Fix new CachedTexture initialization. 2015-05-13 10:10:15 +06:00
Sergey Lipskiy
3380451e00 Fix texture cache verification. 2015-05-13 10:10:15 +06:00
Sergey Lipskiy
02c1884382 Fix pointer compare in FrameBufferToRDRAM::CopyAuxBufferToRDRAM 2015-05-13 10:10:14 +06:00
Sergey Lipskiy
26ab545b8a Fix FrameBuffer_RenderBuffer to work on Linux. 2015-05-13 10:10:13 +06:00
Sergey Lipskiy
1b9c04ade5 Fix Linux compilation. 2015-05-13 10:10:12 +06:00
Sergey Lipskiy
407edd8ea8 Rewrite LOD calculation using dFdx and dFdy functions to get texture coordinates diff.
Many code became useless and thus removed.
2015-05-13 10:10:12 +06:00
Sergey Lipskiy
5cedc0e6e7 Implement VI emulation: treat main frame buffer as TV screen and render
FBO buffers on it according to VI registers values.
2015-05-13 10:10:11 +06:00
Sergey Lipskiy
4e39f37a34 Increase CFB mode frames limit 2015-05-13 10:10:10 +06:00
Sergey Lipskiy
62e3f2404e Copy whole frame buffer to RDRAM, without offset. 2015-05-13 10:10:09 +06:00
Sergey Lipskiy
95acb76460 Render RDRAM buffer only when it is not blank. 2015-05-13 10:10:09 +06:00
Sergey Lipskiy
fb0ba864d1 Force CFB mode if current frame is shown more than 4 times in succession (<15 fps) 2015-05-13 10:10:08 +06:00
Sergey Lipskiy
d6a3b265a5 Cosmetic changes in VI_UpdateScreen(). 2015-05-13 10:10:08 +06:00
Sergey Lipskiy
e788b638b7 Don't copy to RDRAM in CFB mode. 2015-05-13 10:10:07 +06:00
Sergey Lipskiy
a7b5127743 FrameBufferToRDRAM cosmetic changes 2015-05-13 10:10:06 +06:00
Sergey Lipskiy
5f57aa5c48 Implement copy RDRAM to frame buffer. 2015-05-13 10:10:05 +06:00
Sergey Lipskiy
35ab89d379 Fix bug in FrameBuffer_SaveBuffer:
don't use removed buffer
2015-05-13 10:10:05 +06:00
Sergey Lipskiy
31d236f59b Rewrite FrameBuffer_CopyToRDRAM.
Use Pixel Buffer Object for async read from video memory.
2015-05-13 10:10:04 +06:00
Sergey Lipskiy
ae91daa5ca Remove unused gDPUpdateColorImage() function. 2015-05-13 10:10:03 +06:00
Sergey Lipskiy
ca99c49bc7 Remove duplicated code from FrameBuffer functions. 2015-05-13 10:10:03 +06:00
Sergey Lipskiy
72e7d41673 Remove unused function FrameBuffer_RestoreBuffer() 2015-05-13 10:10:02 +06:00
Sergey Lipskiy
fead6f6ad7 Add list of frame buffer emulation issues. 2015-05-13 10:10:01 +06:00
Sergey Lipskiy
bd51edec41 Temporal hackish solution for scoreboard problem in Mario Tennis:
copy aux frame buffer content to RDRAM and delete the buffer.

Need to implement proper solution.
2015-05-13 10:10:01 +06:00
Sergey Lipskiy
0c9c9d4e27 Fix bufEndAddress check in CheckForFrameBufferTexture 2015-05-13 10:10:00 +06:00
Sergey Lipskiy
a93923cbff Add support for Mario Kart microcode 2015-05-13 10:09:59 +06:00
Sergey Lipskiy
efee40c2c7 Implement copy texture frame buffer to RDRAM. 2015-05-13 10:09:59 +06:00
Sergey Lipskiy
971bd9d0ec Frame buffer fixes for Mario Tennis.
Implemented various methods for testing buffer validity.
2015-05-13 10:09:58 +06:00
Sergey Lipskiy
7056d29c0f Fix screen shot capture. 2015-05-13 10:09:57 +06:00
Sergey Lipskiy
d27daf1009 Correct LOD test shader 2015-05-13 10:09:57 +06:00
Sergey Lipskiy
758e0efbff Correct LOD calculation. Not sure, that it is correct. 2015-05-13 10:09:56 +06:00