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

3628 Commits

Author SHA1 Message Date
oddMLan
91287c2e4c Reload config on SaveSettings 2020-06-16 16:59:43 +07:00
oddMLan
71afc19427 Separate "Dump" and "Reload" options Continuation of commit 7228d0d5db 2020-06-16 16:59:43 +07:00
Sergey Lipskiy
f7b6f158b3 Up shader storage version. 2020-06-16 16:59:43 +07:00
Sergey Lipskiy
0c5d036395 Correct _calculateCRC:
calculated texture size in bytes can be too large to fit TMEM.
It leads to out-of-bounds reads in checksum calculations and thus random checksum.
Example:

Fixed Unplayable performance with any kind of texture enhancement. #2279
2020-06-16 16:57:47 +07:00
Sergey Lipskiy
7228d0d5db Separate "Dump" and "Reload" options. 2020-06-14 15:52:09 +07:00
Sergey Lipskiy
156171bebd Set viewport in TextDrawer::drawText
Fixed text messages not shown in some games.
2020-06-14 15:52:05 +07:00
Sergey Lipskiy
ed1648c438 Disable dual blending in Texrect Drawer Mode. 2020-06-14 11:51:33 +07:00
S2S
c48841cfeb Implement dual source blending.
Fixes Donkey Kong 64: Gate textures change from a distance. #585
Fixes Pokemon Stadium wrong transparency in warning sign #728
2020-06-14 11:51:33 +07:00
S2S
3df3df9964 Make glBlendFuncSeparate() available 2020-06-14 11:51:33 +07:00
paradadf
4c8a40c6d8 Fix type cast error for 64bit compilation
RSP_LoadMatrixX86.cpp:92:28: error: cast from 'u8* {aka unsigned char*}' to 'int' loses precision [-fpermissive]
2020-06-14 11:50:57 +07:00
M4xw
4f58d66e96 Fix regressions in GLES 2.0 support introduced by a405ad8
- IOS compiler also doesn't like the vec2 as return Type, thus it's made a out param
2020-05-31 21:07:48 +07:00
S2S
46d170e5fb Fix error introduced by c14ae30 2020-05-19 11:51:13 +07:00
S2S
c14ae30c6d Fix out of bounds texel fetch. Remove Mario Tennis workaround. 2020-05-17 20:39:47 +07:00
Sergey Lipskiy
4974f64a56 Correct precision in shaders. Follow up 1a9d37053 2020-05-13 09:32:20 +07:00
S2S
1a9d370530 fix floating point precision issue 2020-05-13 09:21:53 +07:00
Sergey Lipskiy
499ba7dc1a Set inverted Y to false for Vivid Dolls microcode.
Fixed #2238 vivid dolls: upside down gfx (HLE)
2020-05-12 18:03:41 +07:00
S2S
f5ee3523ef Fix out of bounds texel fetch issues.
Fixes #2257 Dark Rift background issue
2020-05-12 10:44:54 +07:00
Sergey Lipskiy
2616ba9587 Code cleanup. 2020-05-11 18:17:46 +07:00
Sergey Lipskiy
be2f2244a2 Correct UTextureEngine::Update for special textures.
Fixed #2258 space silicon valley: first screen does not show
2020-05-11 17:48:18 +07:00
Sergey Lipskiy
edf5f9ac30 Fix load of 16bit RGBA textures when TLUT mode is TT_IA16
Fixed #2218 Taz express: little bug
2020-05-10 20:14:53 +07:00
Sergey Lipskiy
b505d29838 [Debugger] Fix textures display. 2020-05-10 19:34:21 +07:00
Sergey Lipskiy
3f9911ab9d Up shader storage version.
Fix some compilation warnings.
2020-05-10 16:40:20 +07:00
S2S
bb2221d55f Preliminary GLES2 implementation 2020-05-10 16:24:29 +07:00
S2S
d3720145e3 Add workaround for issue with Mario Tennis Intro 2020-05-10 16:24:29 +07:00
S2S
4834359ec1 Delay texture coordinate normalization. Adapt texture filter to texture engine. 2020-05-10 16:24:28 +07:00
S2S
a405ad8659 Create Texture Engine unit 2020-05-10 16:22:36 +07:00
Sergey Lipskiy
a140f0a989 Disable cull_face in GraphicsDrawer::drawScreenSpaceTriangle
It was removed by mistake in 0bc6cf7a11

Fixed #2251 Zelda: OnePiece backgrounds broken
2020-05-10 15:56:47 +07:00
zilmar
5f816d2a3d GLideNUI-wtl: fix read game prilfe setting in init 2020-05-10 15:56:44 +07:00
zilmar
64c7af548a GLideNUI-wtl: OnFullScreenChanged selects the last refresh rate, manually add refresh rates and select the correct one 2020-05-10 15:56:41 +07:00
Sergey Lipskiy
af906c8419 Use FILTER_NEAREST if enableHybridFilter is disabled
follow up ee0de5e66ce
2020-05-10 15:56:38 +07:00
oddMLan
4532209d43 Use FILTER_NEAREST if enableHybridFilter is disabled
Bilinear by itself looks ugly and it's only necessary to use it for the hybrid filter
2020-05-10 15:56:36 +07:00
oddMLan
d62a653e83 Replace if statements in hybridFilter
if statements are bad for performance in GLSL
2020-05-10 15:56:33 +07:00
oddMLan
2b42e02e69 Fix shader compilation errors in GLSL ES
-Added missing precisions
-Removed explicit floats
-Explicit cast get_texture_size to vec2
2020-05-10 15:56:30 +07:00
oddMLan
8b5509bb8f GLideNUI-wtl: Implement hiding MSAA Depth Warning 2020-05-10 15:56:25 +07:00
oddMLan
591d5d586d GLideNUI-wtl: Fix Fbinfo 2020-05-10 15:56:20 +07:00
oddMLan
c43cee1c03 GLideNUI-wtl: Focus Save and Close button
This makes it so you can press enter to save
2020-05-10 15:56:17 +07:00
Sergey Lipskiy
1cfdb4787d Use hybrid filter for upscale buffer copy and plain bilinear filter for downscale one.
Related to PR #2242
2020-05-10 15:56:09 +07:00
oddMLan
438bcc460f Update Hybrid Shader
This version doesn't use texel_fetch, hopefully fixes any slowdowns in mobile devices.
Also it offloads the bilinear filtering to the hardware.
2020-05-05 11:56:02 +07:00
Sergey Lipskiy
03b404bd4e Use noperspective shade color only for triangles with screen-space coordinates.
noperspective works incorrect for polygons, which are partially out of view.

Fixed #2240 SM64 strange green textures
2020-05-04 20:20:58 +07:00
Sergey Lipskiy
d494806186 Revert "Rewrite fog coordinate calculation:"
This reverts commit 7d4d0f282e.
2020-05-04 19:47:57 +07:00
Sergey Lipskiy
7d4d0f282e Rewrite fog coordinate calculation:
move it from vertex shaders to fragment ones.

Fixed #2234 SM64 Weird Shading on sand texture in Joly Roger Bay
2020-05-03 18:41:20 +07:00
Sergey Lipskiy
87274437cb [Debugger] Fix display of vertex alpha in HLE mode. 2020-05-03 15:14:25 +07:00
Sergey Lipskiy
c8cbafff71 Use the second color section of the Light structure for vertices with odd index (1, 3, ...).
Both color sections of the Light structure must store the same color,
but it is not so for SM64.

Fixed #2212 SM64 koopa's shorts are not correct in hle
2020-05-03 12:10:09 +07:00
zilmar
f525f8fdc0 GLideNUI-wtl: Return current font if fonts are not selected 2020-04-30 18:06:03 +07:00
zilmar
4750a268ae GLideNUI-wtl: Set config.font.name to arial if empty on load 2020-04-30 18:06:03 +07:00
zilmar
3acf3b6f75 Make sure config.font.name is not empty 2020-04-30 18:06:03 +07:00
zilmar
e692509f6e Reset g_face and g_ft 2020-04-30 18:06:03 +07:00
zilmar
47013e2473 Set buffer to nullptr after free 2020-04-28 15:50:37 +07:00
Sergey Lipskiy
a3af1a88e2 Correct LLETriangle ctor 2020-04-27 17:05:43 +07:00
Sergey Lipskiy
415cde8c52 LLETriangle: use m_flushed flag properly. 2020-04-27 17:05:43 +07:00