1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-30 08:24:05 +00:00
Commit Graph

48 Commits

Author SHA1 Message Date
Blake Warner
0255e10db6 native port 2022-01-29 17:22:09 -05:00
S2S
a214ab822e Standarize the number of barycentric coordinate vertex attributes.
Use only two coordinates as vertex attributes for triangles to match the number of coordinates rectangles use. The third one can be computed in the vertex shader.
2020-12-27 12:20:42 +07:00
Sergey Lipskiy
2233cf9f04 Support 'barycoords' vertex attribute in unbuffered drawer. 2020-12-27 12:20:35 +07:00
S2S
486cf59614 Load barycentric coordinates as vertex attributes 2020-12-27 12:01:16 +07:00
Sergey Lipskiy
46c65776a0 Code refactor and cleanup:
* type cast fixes
* signed/unsigned fixes
* code formatting fixes
* class members initialization fixes
2020-11-14 16:54:28 +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
Sergey Lipskiy
31e2c7e11a Correct lighting for CBFD.
Code refactoring.
2019-01-13 01:07:20 +07:00
Sergey Lipskiy
bb8c13ccce Implement rejection processing, see 25.3.2 of programming manual
Fixed Mario Party: Coin Block Blitz ground flicker / darkening #1912
2018-12-06 17:31:50 +07:00
gizmo98
35099ec8cb Backgrounds: Fix cut off textures and texture fragments and seams
-Fix cut off textures in hamster64. Enable coord correction if
gDP.otherMode.textureFilter == G_TF_BILERP.
-Fix seams in hamster64 and texture fragments in starcraft64. Enable
texture clamp if lrs/lrt <= (imageW/imageH - 1).
2018-10-13 19:09:24 +07:00
Sergey Lipskiy
ec898f4178 Rewrite vertex coordinates calculation for gSPObjRectangleR using fixed-point math decoded from S2DEX ucode by olivieryuyu
Code refactoring.
2018-09-30 18:03:44 +07:00
Sergey Lipskiy
b012e8b53c Code refactor:
* move implementation of S2DEX commands from gSP.cpp to uCodes/S2DEX.cpp
* code cleanup
2018-09-30 18:03:44 +07:00
Sergey Lipskiy
7d75b99705 Rewrite gSPObjSprite using fixed-point math decoded from S2DEX ucode by olivieryuyu 2018-09-30 18:03:44 +07:00
Sergey Lipskiy
b0a575313a Implement Factor5 ucodes for Indiana Jones/Battle of Naboo, task #1259 2018-06-16 18:41:50 +07:00
Logan McNaughton
bdb0f7ca94 Emulate GL_DEPTH_CLAMP for GLES 2018-03-23 21:52:06 +07:00
Sergey Lipskiy
29c9a778d9 Correct debug output 2017-11-16 18:52:32 +07:00
Sergey Lipskiy
5a037474a2 Code cleanup: fix compilation warnings. 2017-11-15 15:07:52 +07:00
gizmo98
39d4b223c8 arm neon: add gSPInverseTransformVector function
Fix declaration of gSPInverseTransformVector as well. Replace vtx[4]
with vec[3].
2017-10-10 14:04:36 +07:00
Sergey Lipskiy
c75985b9d8 Code refactor: rewrite HLE vertices loading.
Enable __VEC4_OPT for Windows release builds.
2017-10-06 17:03:11 +07:00
Sergey Lipskiy
d197db5b90 Rewrite Zelda MM Point Light 2017-10-06 17:03:11 +07:00
Sergey Lipskiy
47d718f287 Add F3DFLX2 ucode for F-Zero. Implement F3DFLX2 lighting method. 2017-09-21 21:33:08 +07:00
Sergey Lipskiy
21e7cae6aa Implement F3DEX2_Special_1 command for F3DEX 2.0XH ucodes.
Fixed #1562 Pokemon Snap/Kirby 64/Super Smash Bros. unimplemented command
2017-09-12 21:06:38 +07:00
Sergey Lipskiy
9874fa641c Code cleanup: remove unused function from gSP.h 2017-09-12 21:06:38 +07:00
Sergey Lipskiy
1bb170a3c4 Implement command 0x05. This command generates polygons for terrain geometry.
Very large and complex.
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
1fb8653dae Rewrite DL commands. 2017-08-11 12:23:39 +07:00
Sergey Lipskiy
e56e45e2da Command 05 - 02 WIP debug 2017-08-11 12:23:39 +07:00
Sergey Lipskiy
02e84b90f2 Command 05 - 02 WIP 2017-08-11 12:23:39 +07:00
Sergey Lipskiy
089dd2df0e Fix fog for F3DSWRS 2017-08-11 12:23:39 +07:00
Sergey Lipskiy
a9248c5a26 Port of Lemmy's implementation of SWRS ucode. 2017-08-11 12:23:39 +07:00
Sergey Lipskiy
5691fcbc23 Implement F3DAM ucode.
Decoded by olivieryuyu

Fixed #97 hey you pikachu:hilarious texture bug
2017-07-17 23:08:26 +07:00
Sergey Lipskiy
dabbad0ba2 Implement Acclaim point lighting.
Fixed #147 Turok2: missing flashlight
Fixed #381 Armorines - Project S.W.A.R.M. missing lightning effect in HLE mode
2017-06-30 21:56:03 +07:00
Sergey Lipskiy
c907c3013a Implement Debugger. 2017-06-25 15:35:48 +07:00
Sergey Lipskiy
4722a75b24 Implement T3DUX ucode.
Ucode decoded by olivieryuyu.

Details:
Toukon road 1 & 2, last legion UX: HLE implementation (extended turbo3D)? #624
https://github.com/gonetz/GLideN64/wiki/T3DUX-ucode
2017-06-16 13:23:00 +07:00
gizmo98
abdba2c149 Refactor gSP.lights and gSP.lookat 2017-04-05 10:40:01 +07:00
Sergey Lipskiy
bfe3e265bb Remove defines for vertex attribute indices from gSP.h 2017-01-28 18:02:54 +07:00
Sergey Lipskiy
599f7b1e93 Make separate vertex shaders for triangles and rects. 2016-12-31 19:29:50 +07:00
Sergey Lipskiy
a7df7c13ac Rename parameter in gSPBranchLessW 2016-12-20 21:36:31 +07:00
Gillou68310
9e8b32fc89 Implement ucode for Majora's Mask 2016-12-20 17:40:33 +07:00
Logan McNaughton
380725da53 remove inline specifier for gSPFlushTriangles 2016-12-15 07:30:52 -08:00
Gillou68310
efd9b0fa5f Implement ucode for Goldeneye 007 2016-12-15 18:17:13 +07:00
Sergey Lipskiy
6af6e2c17f Rewrite lighting.
Fixed chopper attack wrong textures #99
Thanks Gillou68310 for detection of the problem's origin.
2016-11-26 19:31:50 +07:00
Sergey Lipskiy
83ff7f9ae5 Implement gSPSelectDL and gSPSelectBranchDL
Fixed Nushi Zuri 64 - Shiokaze ni Notte: #1230
2016-11-17 16:47:31 +07:00
Sergey Lipskiy
cf2bce9176 Implement gSPSetStatus. 2016-11-17 16:47:27 +07:00
Sergey Lipskiy
966b2d0f93 Fix compare of vertex Z and test Z in gSPBranchLessZ.
Fixed GT64 - Championship Edition: missing polygon #151
2016-09-28 23:24:17 +07:00
Sergey Lipskiy
c816f7deeb Code refactor: rename CLIP_Z to CLIP_W 2016-06-20 15:12:31 +06:00
Sergey Lipskiy
7549e04157 Move calculations from drawLLETriangle to vertex shader. 2016-03-19 14:02:49 +06:00
Sergey Lipskiy
b219997c80 Always show cfb until first dlist:
- move flag CHANGED_CPU_FB_WRITE from gSP to gDP (code refactor)
- enable CHANGED_CPU_FB_WRITE on video init.
- disable CHANGED_CPU_FB_WRITE in process display list.

many pd roms and demos use cpu rendering only
now they are supported with default settings
also detectCFB=1 now isn't needed anymore for some games

Commit is based on changes made by purplemarshmallow in #536
2015-05-18 12:55:42 +06:00
Sergey Lipskiy
db9943a7b9 Code refactor: move flag CHANGED_COLORBUFFER from gSP to gDP. 2015-05-18 12:35:48 +06:00
Sergey Lipskiy
52d68d1389 Move all sources to src folder. 2015-05-13 10:21:32 +06:00