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

518 Commits

Author SHA1 Message Date
DaMarkov
4bb89a43d0 Removed error message when SetPixelFormat() fails. 2022-02-19 15:03:03 +01:00
DaMarkov
311608c42d Used NATIVE compiler flag to make changes for OOT optional. 2022-02-08 14:01:30 +01:00
DaMarkov
e5332785fc Changed GLideN64 so it works with framebuffer emulation enabled with OOT. 2022-02-08 03:44:17 +01: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
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
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
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
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
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
s2s
ad091be1cf Fix scale for mip map tiles (GLES2). 2021-11-13 23:17:45 +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
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
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