Commit Graph
9567 Commits
Author SHA1 Message Date
Tony Wasserka b1a4762251 softgpu: Fix specular lighting (or rather, the dumb code that always threw away the result). 2013-08-16 23:49:00 +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 c5544eb293 softgpu: Fix some lighting bugs. Ambient and diffuse light should be working perfectly now. 2013-08-16 23:48:59 +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 704a416baa softgpu: Implement powered diffuse lighting. 2013-08-16 23:48:59 +02:00
Tony Wasserka 0bf4956dfc softgpu: Implement per-light ambient lighting. 2013-08-16 23:48:59 +02:00
Tony Wasserka 48d75dafcb softgpu: Implement attenuation and spot factors. 2013-08-16 23:48:58 +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 73e3b78169 softgpu: Support flat triangle shading. 2013-08-16 23:48:57 +02:00
Tony Wasserka 8f861d8e6f softgpu: Add naive rectangle clipper (which works just as bad). 2013-08-16 23:48:57 +02:00
Tony Wasserka a3178769f7 softgpu: Add (probably broken) rectangle clipping support. 2013-08-16 23:48:57 +02:00
Tony Wasserka ed5fa1f4ff softgpu: Fix vertex color decoding. 2013-08-16 23:48:57 +02:00
Tony Wasserka 02f41ecbd6 softgpu: Perspective correct texture mapping. 2013-08-16 23:48:57 +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 b5181c9f4f softgpu: Add support for RGB565, RGBA5111 and RGBA8888 textures. 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 f6b51dcd55 softgpu: Working ARGB4444 texture support. 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 748d2d60f7 softgpu: Implement filled triangle rendering. 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
Tony Wasserka 6e124f351b softgpu: Working vertex position transform! 2013-08-16 23:48:54 +02:00
Tony Wasserka 209e040b73 softgpu: Fix some bugs, committing stuff before it breaks again... 2013-08-16 23:48:54 +02:00
Tony Wasserka a4af6d4bc4 softgpu: Add line drawing. (yep, transform code definitely doesn't work.. :p). 2013-08-16 23:48:53 +02:00
Tony Wasserka 40cdabeb7d softgpu: Add vertex position transformation code. Seems to be doing something, even though it's not the right thing :/ 2013-08-16 23:48:53 +02:00
Tony Wasserka 55a94f9852 softgpu: Use existing VertexDecoder/VertexReader to add vertex decoding support. 2013-08-16 23:48:53 +02:00
Tony Wasserka 91ad30c287 softgpu/TransformUnit: Implement remaining coordinate system transformations. 2013-08-16 23:48:53 +02:00
Tony Wasserka 1430ca3e73 softgpu: Add transform pipeline functionality. 2013-08-16 23:48:52 +02:00
Tony Wasserka 232a0378b7 softgpu: Clean up. 2013-08-16 23:48:52 +02:00
Tony Wasserka b1d4919327 softgpu: Dummy implementation for CopyDisplayToOutput. 2013-08-16 23:48:52 +02:00
Tony Wasserka 19c6fedb79 Copy NullGpu to SoftGpu. 2013-08-16 23:48:52 +02:00
Henrik Rydgard 22ebe76f33 Move KeyMapping UI to its own file before rewriting.
Plus some minor tweaks and fixes.
2013-08-16 16:49:53 +02:00
Henrik Rydgard c79d1c68cc Fix frozen videos in some games 2013-08-16 09:27:49 +02:00
Henrik Rydgard 664d74a9b7 Another frameskipping attempt. Now: 0=no frameskip, 1=auto frameskipt, 2-9=fixed frameskip.
There is still some flicker remaining in non-buffered rendering that I can't seem to get rid off.
2013-08-16 01:00:26 +02:00
Henrik Rydgård 345b5fd859 Merge pull request #3171 from raven02/patch-1
Temporary fix issue #3167 in non-multithread mode
2013-08-14 13:42:14 -07:00
Henrik Rydgard a4f5418d9d Complete the name change to ClearBuffer 2013-08-14 22:14:18 +02:00
raven02 e68ddf671c Temporary fix issue #3167 in non-multithread mode #2 2013-08-15 03:44:20 +08:00
raven02 9e40468b9f Temporary fix issue #3167 in non-multithread mode #1 2013-08-15 03:43:40 +08:00
raven02 2dd75b5b97 ClearBuffer() 2013-08-15 03:32:43 +08:00
raven02 9f0ca16df7 boolean fix 2013-08-15 03:21:42 +08:00
raven02 f49e5535a7 Few more boolean fix 2013-08-15 03:20:06 +08:00