Tony Wasserka
247ea278c8
softgpu: Implement alpha blending.
2013-08-16 23:49:03 +02:00
Tony Wasserka
df40c76da9
softgpu: Do weird stuff with no profit. Check this=> TODO
2013-08-16 23:49:02 +02:00
Tony Wasserka
15d0d2e7a8
softgpu: Fix (?) texture coordinate reading for through mode. Needs review.
...
softgpu: Cleanup depth testing and only account for the clearmode depth write flag if clearmode is enabled.
2013-08-16 23:49:02 +02:00
Tony Wasserka
6930e29d66
softgpu: Implement color doubling and color addition.
2013-08-16 23:49:02 +02:00
Tony Wasserka
cc043ada57
softgpu: Implement texture functions.
2013-08-16 23:49:02 +02:00
Tony Wasserka
0e1e8fe331
softgpu: Clean up depth testing code.
2013-08-16 23:49:02 +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
b33646cced
softgpu: Disable texturing in clear mode.
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
3cdf2a789d
softgpu: Write to the correct frame buffer in RAM.
2013-08-16 23:49:01 +02:00
Tony Wasserka
29921e4b44
softgpu: Disable alpha blending when copying framebuffer to screen.
2013-08-16 23:49:00 +02:00
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