chinhodado
aae9d43e7d
remove some redundant brackets
2014-02-22 23:26:20 -05:00
Unknown W. Brackets
e7eca477b0
Add a tab to show vertex values to the GE debugger.
...
Should be pretty useful, especially for depth issues.
2014-02-08 22:03:29 -08:00
Unknown W. Brackets
b95f9cf9d1
softgpu: Don't call rectangles quads.
...
GLES has quads and they work pretty differently.
2014-01-18 16:39:07 -08:00
Tony Wasserka
4c720ee375
softgpu: Fix typo in TransformUnit.
2014-01-02 02:10:12 +01:00
Unknown W. Brackets
473fb866e6
softgpu: Implement vertex preview.
...
And move ConvertMatrix4x3To4x4() into a common place since there were
differing implementations, which was only confusing.
2013-12-29 13:45:10 -08:00
Unknown W. Brackets
25bc394284
Ignore the material update flag w/o vertex color.
...
Instead of using materialambient for all of them.
Fixes #3918 , and seems to match tests with 3dstudio.
2013-12-29 12:57:30 -08:00
Henrik Rydgård
68b08ffb9f
SoftGPU: Quick and dirty lines and points implementation
...
No line/point texturing support yet.
2013-12-09 12:43:49 +01:00
Unknown W. Brackets
d227b13f36
softgpu: Advance vertex/index address on prim.
...
Fixes some broken graphics in a lot of places.
2013-11-20 21:59:45 -08:00
Unknown W. Brackets
dfadb67ea1
Avoid some operator overloads.
...
Causing ambiguity.
2013-11-17 14:42:58 -08:00
Unknown W. Brackets
eabd8b5302
Add GPU debugging hooks to Host, not yet in use.
2013-09-22 08:14:55 -07:00
Henrik Rydgard
82e5787bbe
Preparation for proper spline/bez: Convert control points to a simple format.
...
The bezier/spline code will no longer need to handle morph and splines,
when it's finally written. This is done by pre-skinning in software and
pre-decoding to get rid of the morph.
2013-09-21 23:37:14 +02:00
Unknown W. Brackets
26f935bbe5
Bypass vertex decoder z scaling.
...
Everything is compared against the u16 value. This should be correct for
throughmode at least.
2013-09-14 15:48:11 -07:00
Unknown W. Brackets
7b2dea4429
Use accessors for offsetx/y.
2013-09-14 11:06:48 -07:00
Unknown W. Brackets
cd70250d8c
Use more accessors, simplify softgpu colortest.
2013-08-24 11:34:38 -07:00
Unknown W. Brackets
c141e94fe9
Use gstate.* accessors in a few more places.
2013-08-24 11:34:35 -07:00
raven02
758cc878fb
softgpu : should be vreader.ReadColor1
2013-08-17 22:21:14 +08:00
raven02
8ff2a1bb35
softgpu : fix v_color0 to use MaterialAmbient
2013-08-17 22:05:50 +08:00
Tony Wasserka
74eafcab1a
softgpu: Process rasterization in screen space, rather than drawing space.
2013-08-16 23:49:15 +02:00
Tony Wasserka
c707140512
softgpu: Implement normal reversal.
2013-08-16 23:49:15 +02:00
Tony Wasserka
45577507f3
softgpu: Disable clipping if it's not requested by the game. Also fix some clipping-related bugs.
2013-08-16 23:49:14 +02:00
Tony Wasserka
2962d242cb
softgpu: Implement skinning.
2013-08-16 23:49:14 +02:00
Tony Wasserka
11a94e1d14
softgpu: Implement spline surface drawing (without patch subdivision).
2013-08-16 23:49:13 +02:00
Tony Wasserka
d2f30961af
softgpu: Make perspective correct uv mapping code more readable and implement projection mapping.
2013-08-16 23:49:12 +02:00
Tony Wasserka
62b384e052
softgpu: Lots of clearmode fixes.
2013-08-16 23:49:11 +02:00
Tony Wasserka
917dc276dc
softgpu: Small cleanup in Clipper.
2013-08-16 23:49:10 +02:00
Tony Wasserka
44035df446
SoftGpu: Add support for triangle fans.
2013-08-16 23:49:10 +02:00
Tony Wasserka
ccb487cbae
softgpu: Clip primitives when one of their vertices is outside the screen coordinate range (the code really needs a cleanup though).
...
softgpu: Fix triangle strip rendering.
softgpu: Implement CCW cullmode.
2013-08-16 23:49:08 +02:00
Tony Wasserka
602e0e5358
softgpu: Add working CLUT support.
2013-08-16 23:49:04 +02:00
Tony Wasserka
f447957263
softgpu: Use the actual z coordinate of a triangle in through mode, too.
2013-08-16 23:49:04 +02:00
Tony Wasserka
8e7f35feee
softgpu: Workaround a bug in through mode (in Rasterizer::DrawTriangle "den" would become really large because clippos.w wasn't initialized to a good value).
2013-08-16 23:49:03 +02:00
Tony Wasserka
bd49480244
softgpu: Add initial support for triangle strips. No idea if they work.
2013-08-16 23:49:01 +02:00
Tony Wasserka
00b7fbd19e
softgpu: Implement depth testing.
2013-08-16 23:49:01 +02:00
Tony Wasserka
72a71702a5
softgpu: Storing view coordinates in VertexData is not necessary anymore.
2013-08-16 23:49:01 +02:00
Tony Wasserka
fd65b7c9b8
softgpu: New try at specular lighting, still doesn't seem to work...
2013-08-16 23:49:00 +02:00
Tony Wasserka
219b35317e
softgpu: Transform normals correctly.
2013-08-16 23:49:00 +02:00
Tony Wasserka
41e2005ad0
softgpu: Fix various bugs.
...
Using model transformed normals for light calculations now.
Disabling textures if texture mapping isn't enabled now.
Forced target alpha to be written as 0xFF to workaround broken buffer management.
2013-08-16 23:48:59 +02:00
Tony Wasserka
6c1b4ba32b
softgpu: Implement specular lighting.
2013-08-16 23:48:59 +02:00
Tony Wasserka
b42b30e795
softgpu: Store color values as integers instead of as floating points.
2013-08-16 23:48:58 +02:00
Tony Wasserka
7fdce30199
softgpu: Implement diffuse lighting.
2013-08-16 23:48:58 +02:00
Tony Wasserka
288de895db
softgpu: Support indexed rendering.
2013-08-16 23:48:58 +02:00
Tony Wasserka
bfd9266b51
softgpu: Add support for ambient lighting.
2013-08-16 23:48:58 +02:00
Tony Wasserka
0c6a4c1bb6
softgpu: Working rectangle support. Through mode support. Clear mode support. Vertex color support.
2013-08-16 23:48:56 +02:00
Tony Wasserka
55d6646fc3
softgpu: Add something like rectangle support. Doesn't seem to work :/
2013-08-16 23:48:56 +02:00
Tony Wasserka
2aff3a8575
softgpu: Move clipping code to a separate file.
2013-08-16 23:48:56 +02:00
Tony Wasserka
f26d66e972
softgpu: Fix a bug in the clipspace->screenspace transformation. Makes polygon clipping work perfectly :)
2013-08-16 23:48:55 +02:00
Tony Wasserka
608fd34b4d
softgpu: Implement almost working polygon clipping and fix some bugs.
2013-08-16 23:48:55 +02:00
Tony Wasserka
7899a9b9c9
softgpu: Texture coordinate support and something like ARGB4444 texture support.
2013-08-16 23:48:55 +02:00
Tony Wasserka
142f2a3688
softgpu: Move triangle rasterization code to a new file.
2013-08-16 23:48:54 +02:00
Tony Wasserka
adbe80c290
softgpu: Move around some code to keep SoftGpu.cpp clean.
2013-08-16 23:48:54 +02:00
Tony Wasserka
5510434f90
softgpu: Cleanups.
2013-08-16 23:48:54 +02:00