1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-27 23:14:05 +00:00
Commit Graph

3628 Commits

Author SHA1 Message Date
Sergey Lipskiy
555fbac213 Fix mip-mapped textures not filtered with fast texture path when "emulate mip-map" is disabled. 2022-02-13 21:40:31 +07:00
Sergey Lipskiy
31553a3532 Correct load of mip-map textures with accurate path when mip-map emulation is disabled.
Fast path totally disables mip-map calculations when "mip-map emulation" option is disabled.
Accurate path works differently. It just set lod to 1.0, which forces most detailed textures to be used.
However, the remained calculations are performed and the mip-map tiles still must be in texture atlas format.

Fixed black textures in GE when mip-map emulation is disabled, see #2641
2022-02-13 21:00:26 +07:00
fzurita
bf7dd027ba Don't use a vertex offset in the fast shader path 2022-02-13 18:38:28 +07:00
Rosalie Wanders
7e728b1f55 GLideNUI: copy config files to user config path when needed 2022-02-13 11:45:41 +07:00
Rosalie Wanders
4598939a90 Add inaccurate texture coordinates hotkey 2022-02-13 11:38:27 +07:00
Sergey Lipskiy
8a0db39812 Refactor texture load: apply proper mask to tmem read address to prevent out of bounds reads.
Fixes #2641 Regression: Check that texture fit TMEM before load
2022-02-13 11:16:24 +07:00
Sergey Lipskiy
1e0699bf73 Revert "Check that texture fit TMEM before load."
This reverts commit 7417144f64.
2022-02-13 11:16:24 +07:00
Blake Warner
403658b456 used bit 1 to signify segment address lookup 2022-02-10 23:54:51 -05:00
Blake Warner
c5b63481ab
Merge pull request #3 from DaMarkov/gfx-force43
Aspect ratio 4:3
2022-02-10 16:50:54 -05:00
DaMarkov
fb108abab7 Fixed an issue when the user is resizing the window while in 4:3 mode. 2022-02-10 22:14:38 +01:00
DaMarkov
455310da1c Fixed a tiny but important mistake. 2022-02-10 22:07:23 +01:00
DaMarkov
f42ee1e7f8 Added gfx_force_43 to switch the aspect ratio to 4:3 on the fly.
I had to add a new method `forceResizeWindow` for this.
Also added NO_LOAD_PROGRESS_DISPLAY.
2022-02-10 21:27:45 +01:00
Blake Warner
88f7de3e2b
Merge pull request #2 from DaMarkov/oot-framebuffer-emulation
OOT framebuffer emulation
2022-02-08 12:19:07 -05:00
DaMarkov
19533b5d18 Cleanup and missed on change in FrameBuffer.cpp. 2022-02-08 16:58:56 +01:00
DaMarkov
187d1a9caa Moved structs into Native.h. 2022-02-08 15:05:07 +01:00
DaMarkov
311608c42d Used NATIVE compiler flag to make changes for OOT optional. 2022-02-08 14:01:30 +01:00
DaMarkov
e6cdd229fd Changed the project files back. 2022-02-08 07:27:55 +01:00
DaMarkov
e5332785fc Changed GLideN64 so it works with framebuffer emulation enabled with OOT. 2022-02-08 03:44:17 +01:00
DaMarkov
dca837e446 Also changed the output folder of the other projects. 2022-02-07 19:05:38 +01:00
DaMarkov
0e86b4314f Changed output directoy.
Directoy is now relative to the project and not the solution.
Needed to add GLidenN64 to different solution files.
2022-02-07 18:10:32 +01:00
Blake Warner
35b278896f fixed heap overflow 2022-02-05 15:37:51 -05:00
Blake Warner
a054cb622b stripped unneeded files and changed default config options 2022-01-31 16:41:02 -05:00
Blake Warner
0255e10db6 native port 2022-01-29 17:22:09 -05:00
Sergey Lipskiy
7417144f64 Check that texture fit TMEM before load.
It should prevent out of TMEM bounds read.
2022-01-22 11:21:29 +07:00
s2s
0d765008d0 Do not apply shift scale to background textures.
Fixes issue with Command & Conquer described in #2617
2022-01-21 17:58:58 +07:00
fzurita
df2d4debbb Workaround for PowerVR issues
PowerVR needs depth to be cleared every frame, otherwise most geometry
is rendered behind the background.

It also needs fragment based depth to be disabled, otherwise geometry
has various depth glitches.
2022-01-16 18:35:05 +07:00
Sergey Lipskiy
30e4d3416b Minor code cleanup in gSPCullVertices 2022-01-16 18:07:24 +07:00
Sergey Lipskiy
fd29c4386a Fix renderScreenSpaceTriangles when input vertices represent TRIANGLE_STRIP. 2022-01-16 17:24:49 +07:00
Sergey Lipskiy
e9a6f258af Apply mask on DMEM address to avoid segmentation fault in Indiana Jones,
see #2628
2022-01-08 11:22:42 +07:00
fzurita
6275140109 Fix build with CMake on Windows 2022-01-07 19:05:08 +07:00
Sergey Lipskiy
8343fd05c9 Restore logic for uTexOffset uniform.
fixed #2621 Mario tennis broken shadows in accurate path
2021-12-21 00:54:17 +07:00
Sergey Lipskiy
506f263c13 Correct imageW/imageH calculation in ObjCoordinates again.
fixes #2617 RE2 bottom of the screen is being cut off
2021-12-19 20:53:09 +07:00
Sergey Lipskiy
b2f3caa1a4 Revert "Shift S2DEX background texture coordinates in non-native resolutions."
This reverts commit e0d5b0be7b.

fixes #2625 Majora's Mask misplaced blur
2021-12-19 20:46:16 +07:00
Sergey Lipskiy
2c8533661b Fix crash in Mario Tennis, caused by wrong tile size calculation.
Regressions in S2DEX games are possible, but not found yet.
Also make sure that size of mip-map tile is not greater than possible.
2021-12-18 23:59:19 +07:00
Sergey Lipskiy
223a6b757b "Correct" mipmap shader.
It was correct, but absence of space between '}' and '\n' makes it working incorrect on Radeons.
Looks like a driver error.
2021-12-18 22:56:10 +07:00
Sergey Lipskiy
7b507e74d4 Correct TextureCache::activateTexture 2021-12-08 20:37:36 +07:00
Sergey Lipskiy
f4fce5608f Correct mip-map shader for the case when texture level is 0 and detailed texture enabled 2021-12-08 20:37:36 +07:00
orbea
9d0e92a10d cmake: Generate Revision.h in the build directory 2021-12-06 23:57:51 +07:00
Sergey Lipskiy
727639c8ba Fix gDP.m_texCoordBounds validity. 2021-12-05 15:18:51 +07:00
s2s
337e96d3b0 Use texture coordinate bounds for s2dex one-piece backgrounds 2021-12-05 15:18:51 +07:00
s2s
75fd353741 Modify implementation of texture coordinate bounds for non-native resolutions. 2021-12-05 15:18:51 +07:00
Sergey Lipskiy
21fe9d5f92 GraphicsDrawer::drawTexturedRect fixes:
* remove old hack for clamp/wrap tex coords. It seems that the hack is not necessary anymore.
necessary anymore.
* minor optimization for accurate texture path.
2021-12-05 15:18:00 +07:00
s2s
4e0a4f700c Remove duplicated uniforms in accurate texture coordinate path. 2021-11-30 11:23:26 +07:00
orbea
6b8b53f633 cmake: Set OpenGL_GL_PREFERENCE
Silences a cmake warning for Policy CMP0072 with cmake-3.21.4.
2021-11-30 11:23:03 +07:00
orbea
ea98e44d7f cmake: Better handling of git
This fixes some problems:

* When building out of tree the git command will work in the wrong
  directory.
* The user may not actually have git installed.
* The source tree may not actually have the .git directory, for example
  when downloading a source archive from github.
2021-11-30 11:21:11 +07:00
orbea
c6fdaa899f src/GLideNHQ/CMakeLists.txt: Bump cmake version
This matches the other cmake files.
2021-11-30 11:18:09 +07:00
orbea
72062a142e cmake: Better handling of CMAKE_BUILD_TYPE
There are four main variable for CMAKE_BUILD_TYPE, 'Debug',
'Release', 'RelWithDebInfo' and 'MinSizeRel'. Additionally
there is 'None' which acts as a plain build.
2021-11-28 23:38:58 +07:00
orbea
e25cb4f111 cmake: Add an install target 2021-11-28 21:32:51 +07:00
s2s
e0d5b0be7b Shift S2DEX background texture coordinates in non-native resolutions. 2021-11-26 19:14:37 +07:00
s2s
865e9b443e Fix S2DEX one-piece backgrounds 2021-11-26 19:14:36 +07:00