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
Rosalie Wanders
62e49b9cdf
ci: fix build failure
2021-11-26 19:05:35 +07:00
Jj0YzL5nvJ
1956f78234
Build script: Adds enhancements for external tools, better differentiation between revisions and debug builds
2021-11-20 17:33:05 +07:00
Sergey Lipskiy
94ce6203b6
Limit max height for main frame buffers by VI.height
...
Fixed #2519 Extreme G picture is shaking / unstable
2021-11-20 17:22:24 +07:00
Sergey Lipskiy
00529a21ed
Add sanity test for current scissor to renderTriangles and renderAndDrawTriangles
2021-11-20 17:20:40 +07:00
Sergey Lipskiy
b0ec6c47b4
Minor code cleanup in Rasterize.
2021-11-20 17:15:26 +07:00
s2s
ad091be1cf
Fix scale for mip map tiles (GLES2).
2021-11-13 23:17:45 +07:00
Sergey Lipskiy
cc42888c1b
Enable noDepthFrameBuffers hack for Extreme G 2
...
Fixed #2601 Extreme-G 2 XG 2 (U) - Incorrect Loading Screen
2021-11-13 22:43:06 +07:00
Sergey Lipskiy
abf81a5252
Up shaders format version
2021-11-07 13:11:58 +07:00
s2s
8e961b7b39
Fix scale for mip-map tiles.
...
Note: it is incomplete solution for problems with mip-mapping.
Fixes Paper Mario Snow #2570
2021-11-06 18:06:59 +07:00
Sergey Lipskiy
46c58576e2
Code refactor. add calcShiftScaleS and calcShiftScaleT
...
Remove code duplication.
2021-11-06 17:14:24 +07:00
Rosalie
9ebb11f37b
osal_files_unix: fix osal_search_dir_read_next crash
2021-11-03 13:02:49 +07:00
Sergey Lipskiy
472eef6c67
Fixes for txHiResUploadLimit
2021-11-01 15:32:49 +07:00
Rosalie Wanders
9479dfa6e9
Introduce txHiResUploadLimit
2021-11-01 15:32:27 +07:00
Sergey Lipskiy
9a6f9f6d69
Implement load of 16bit I textures.
...
Fixed #2340 Zelda Majora's Mask - Town Shooting Gallery Missing Effects
2021-10-31 00:04:33 +07:00
Sergey Lipskiy
d328ea50c7
Correct include in TxFilterStub.cpp
...
Follow up commit 71788c
2021-10-30 13:02:13 +07:00
Sergey Lipskiy
cc6fdb4670
Rename txWidestringWrapper.h to txWidestringHelper.h
...
Correct #include
2021-10-24 18:44:16 +07:00
Sergey Lipskiy
71788c320d
Rename Ext_TxFilter.h to TxFilterExport.h
...
Correct #include
2021-10-24 18:44:10 +07:00
Rosalie Wanders
22f50fafb5
GLideNHQ: cleanup
2021-10-24 18:43:26 +07:00
Sergey Lipskiy
ada73c60ee
Code cleanup
2021-10-24 15:04:34 +07:00
fzurita
3d5a39e647
Add a new "fast" shader path that doesn't use texelFetch in glsl
2021-10-17 10:27:44 -04:00
fzurita
466401cd02
Update from C++11 to C++17
2021-10-12 20:30:22 +07:00
s2s
aea67fb370
Do not apply the texture coordinate offset to background textures.
...
Fixes #2594
2021-10-12 20:27:33 +07:00
s2s
e6d754a5d1
Make the hack for Conker's shadow and Mario Tennis game specific.
...
Fixes #2585 Mario Golf: background shifted
2021-10-04 22:00:17 +07:00
Sergey Lipskiy
4911bd7eb5
Init hdRatio for depth buffer texture.
...
Fixes #2577 Mario Golf: Animated effects render in front of course
2021-10-02 20:44:52 +07:00
fzurita
21eb341b8d
Fix some shader compilation errors
2021-10-02 17:42:06 +07:00
Sergey Lipskiy
8a3939aa70
Rewrite mipmap shader for GLES 2.0
2021-10-02 17:42:04 +07:00
Sergey Lipskiy
6f9b2f95b3
Use sliced texture atlas for mipmap textures to avoid possible texture size limitations.
2021-10-02 17:42:01 +07:00
Sergey Lipskiy
23ce26dbc4
Do not load mip-map levels if current combiner does not use LOD.
...
Workaround for grass in Mario Tennis intro.
2021-10-02 17:41:58 +07:00
s2s
c7701d16c3
Force lod=1.0 when the most detailed texture is desired by the user.
2021-10-02 17:41:55 +07:00