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
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
s2s
c7701d16c3
Force lod=1.0 when the most detailed texture is desired by the user.
2021-10-02 17:41:55 +07:00
s2s
dd64b42081
Remove needReplaceTex1byTex0()
2021-10-02 17:41:53 +07:00
s2s
134aa31e61
LOD: tile selection and lod_frac calculation changes
2021-10-02 17:41:50 +07:00
Sergey Lipskiy
539e3b0ad4
Rewrite mip-maps load:
...
* load all but the first mip-map tiles as 1D texture atlas, that is array of texels.
all tiles loaded as rgba32.
first 8 texels contain information about tile's width, height and offset, 1 texel per tile.
* mipmap shader corrected to fetch texels from the atlas.
All hacks, which were necessary to load N64 mip-maps into OpenGL texture are removed.
2021-10-02 17:41:41 +07:00
fzurita
576c82185b
Force software vertex clipping to enabled for GLES
2021-09-26 12:12:07 -04:00
fzurita
f2a69be96f
Remove CLIP control hack for GLES
...
It's not longer needed due to software vertex clipping.
2021-09-26 12:12:07 -04:00
Rosalie Wanders
bfe3c36e73
WindowsWGL: use adaptive vsync when supported
2021-09-26 17:47:11 +07:00
Sergey Lipskiy
10b6817613
Correct special shader for fog in Beetle Adventure Racing.
...
fixes #2556 Beetle Adventure Racing. Fog is broken.
2021-08-24 23:04:06 +07:00
Rosalie Wanders
70a9213d69
ScreenShot: move to common windows implementation
2021-08-14 19:02:42 +07:00
Sergey Lipskiy
44e809ed13
Revert "Change LOD calculation formula. Use the maximum value of the change of S and T per change in X and Y."
...
This reverts commit 73b2d0060b
.
2021-07-29 15:29:03 +07:00
s2s
0c30bdf4e2
Increment shader storage version number
2021-07-29 14:06:33 +07:00
s2s
47aaf2fc99
Cleanup uniforms no longer used
2021-07-29 14:06:33 +07:00
s2s
7e8265bf20
Apply texture shift and offset on a per pixel basis. Clean texture engine code.
2021-07-29 14:06:33 +07:00
s2s
73b2d0060b
Change LOD calculation formula. Use the maximum value of the change of S and T per change in X and Y.
2021-07-27 18:14:58 +07:00
Rosalie Wanders
1ad662092d
Fix building zilmar-spec with cmake with mingw
2021-07-23 12:29:36 +07:00
Sergey Lipskiy
5072ec8ee8
Fix anisotropic filtering.
...
Fixed #2527 Is anisotropic filtering always ON
2021-07-22 22:17:07 +07:00
Rosalie Wanders
14229b93ba
Fix Project64 when statusbar is hidden
2021-07-21 19:58:15 +07:00
s2s
81ac29a04f
Fix an overlook in 213c10d
2021-07-21 19:56:11 +07:00
s2s
213c10d6de
Restore equivalent to old code for nativeResFactor=0
2021-06-13 21:54:52 +07:00
s2s
ce1fb27cf7
Fix detection of native-res texture rectangle when computing the texture coordinate offset.
2021-06-13 21:54:52 +07:00
Francisco Zurita
15668b9064
Wait for buffer to be empty before reallocating memory
2021-05-26 23:02:15 +07:00
Francisco Zurita
e9d08c33bd
Temporary fix for NVidia shaking on Windows
2021-05-26 23:02:15 +07:00
s2s
acfb569dea
Use a 640x640 bounding box for screen coordinates.
...
A smaller bounding box allows rendering in higher resolutions. It should be made bigger if geometry is clipped.
2021-05-15 23:31:10 +07:00
fzurita
f4a0019acf
Fix GLES 2.0 GLSL shader compilation error.
2021-05-02 18:24:11 +07:00
fzurita
6ee8c71bf0
Only try to use an EGLImage if initialization of it was successful
2021-05-02 18:24:11 +07:00
fzurita
0cf810416b
Destroy EGL image after we are done with it
2021-05-02 18:24:11 +07:00
s2s
02d12d180d
Change heuristic when using non-multiple-of-native rendering resolutions.
...
The games behave unpredictably at random rendering resolutions, so a simpler heuritic is used.
Fixes #2482
2021-04-28 17:37:12 +07:00
s2s
e70c9bfcd7
fix native rects
2021-04-19 21:55:00 +07:00
s2s
4aa7fe9fc2
Change heuristic to render texture rectangles
2021-04-19 21:55:00 +07:00
s2s
f94ffe2b9d
Increment shader storage version number
2021-04-19 21:55:00 +07:00
s2s
4e0a0186f5
Add config option for texture coordinate bounds
2021-04-19 21:55:00 +07:00
s2s
cdd1dcc438
Use texture coordinate bounds for non-native resolutions
2021-04-19 21:55:00 +07:00
s2s
acf26e613d
Apply a vertex position or texture coordinate shift to approximate N64 rasterization rules
2021-04-19 21:55:00 +07:00
s2s
39153304e1
Workaround for framebuffer textures
2021-04-19 21:55:00 +07:00
s2s
fe244c5560
Update widescreen hack
2021-04-19 21:55:00 +07:00
s2s
81318c5445
Use screen coordinates to render primitives
2021-04-19 21:55:00 +07:00
fzurita
5f7a7cadc2
Stop using predefined texture sizes introduced for Android
...
For Android we use EGL image for async copies and for sync copies and
devices that don't support EGL image, the fixed texture sizes don't seem
to improve performance.
2021-04-19 21:50:55 +07:00
Logan
7a6289b270
Fix N64 Depth Compare on Intel PC
2021-04-14 21:07:22 +07:00
Sergey Lipskiy
d27ce4781f
Fix calculation of clamping parameters for texture engine:
...
use integer part of tile coordinates to calculate tile dimensions.
Fixed texture glitches io topgear overdrive, #2464
2021-03-18 16:35:57 +07:00
fzurita
063fdae46e
Don't allow EGL image on tegra devices
2021-02-22 13:03:21 +07:00
fzurita
35554dabf0
Fix N64 Depth compare with Adreno
2021-02-17 16:58:28 +07:00
Sergey Lipskiy
442d4ed894
Fix near-palne clipping for GLES.
...
Fixes #2449 Cruis'n world invisible car
2021-02-14 01:00:10 +07:00
s2s
090b38e2d3
Optimize coverage computation algorithm
2021-02-13 15:26:25 +07:00
fzurita
f48b158c0d
Fix usage of GL extension GL_EXT_draw_elements_base_vertex
2021-02-07 11:39:19 +07:00
fzurita
dc6340bfff
Fix issue where the barycoords vertex attribute was not being disabled
2021-02-04 20:06:43 +07:00