Commit graph

160 commits

Author SHA1 Message Date
raven02
b35e89f646 Fix rear mirror in Ridge Racer 2 2013-07-27 18:45:48 +08:00
raven02
380b51dc6d Revert clamp to zero and use another attempt fix 2013-07-27 18:20:07 +08:00
raven02
087cb8b5e0 Clamp vpX0/vpY0 to zero when negative value retured 2013-07-27 06:24:59 +08:00
raven02
cffb397fbf Fall the depth test to the simplest and correct one 2013-07-25 00:01:00 +08:00
Unknown W. Brackets
b2927213c7 Use stencil GE state accessors. 2013-07-21 19:45:04 -07:00
Unknown W. Brackets
abd9dc6137 Use the light computation/type GE accessors. 2013-07-21 19:44:30 -07:00
raven02
100d336fb2 Remove _ suffix and hide the GPU mode on GLES2 2013-07-22 04:17:54 +08:00
raven02
87fc81e56d Consolidate Rendering Mode 2013-07-21 23:17:42 +08:00
raven02
dfb5983816 Remove !gstate.isFogEnabled() 2013-07-18 23:41:08 +08:00
Henrik Rydgard
edf5e13673 Undo a small difference introduced in #2814, should fix #2815 2013-07-17 23:12:46 +02:00
raven02
2e4e00329f Use getScissor() function for setting scissorX1/Y1/X2/Y2 2013-07-18 04:04:00 +08:00
raven02
167a56642b Consolidate culling test into non-clear mode 2013-07-15 00:10:43 +08:00
raven02
bee66bdb4d Fix depth issues in multiple games 2013-07-14 03:24:29 +08:00
Henrik Rydgård
fbe8a19143 When alpha mask is off, don't write to stencil if stencil is off (as
alpha and stencil are shared on the PSP, when neither are on nothing
should be written to the stencil channel). thanks unknown.
2013-07-03 17:57:33 +02:00
raven02
d43a2f4d06 Fix stencil issue in MotoGP 2013-07-03 08:39:45 +08:00
raven02
6a1b6407fd Fix depth issues in multiple games 2013-07-01 23:03:34 +08:00
Henrik Rydgard
2694343243 Another attempt at reusing bigger framebuffers. Doesn't solve everything but hopefully won't break much like the last attempt. 2013-06-20 22:19:20 +02:00
Henrik Rydgård
17e084d77e Fix objects showing through road in Ridge Racer. Clears can set whether
to affect depth or not, need to respect that bit. Fixes #1712.
2013-05-08 11:29:24 +02:00
Unknown W. Brackets
d412cf5c64 Approximate better with two fixed blend colors.
Having one be constant, or having a nearby blend, is better than fixing
both to 1.0 or 0.0.
2013-05-01 08:00:52 -07:00
Unknown W. Brackets
4009a37692 Improve blending with two fixed colors.
It's not right, but it's less bad.  Maybe there's a better way?

Improves Popolocrois and Lunar (battle) blending issues.
2013-05-01 00:55:30 -07:00
Unknown W. Brackets
bc1e0d09d4 Report a possible blend error. 2013-04-30 00:04:00 -07:00
BeaR
3cc7d99143 Change texture even on clearmode 2013-04-09 09:50:57 +02:00
raven02
6396324f57 Add few isEnabled() in GPUState for Alpha/Color/Lighting/Texture Test 2013-03-27 18:35:54 +08:00
raven02
719e225e7b Add glstate.dither.disable() 2013-03-26 15:36:13 +08:00
raven02
8280d6e9ae Add glstate.dither.enable() 2013-03-26 14:50:37 +08:00
raven02
f4fc0112c8 int sign match for gstate_c.curRTWidth/gstate_c.curRTHeight 2013-03-24 21:25:38 +08:00
raven02
ada37f06cb spacing fix 2013-03-16 21:37:56 +08:00
Henrik Rydgard
f67743b769 Fix scissor rectangle being one pixel too small. 2013-03-16 08:54:39 +01:00
Henrik Rydgard
b1108f3290 Respect the size of the current FBO when drawing. Some cleanup. 2013-03-16 00:40:37 +01:00
Henrik Rydgard
13c2905f05 Buildfix (typo) 2013-03-15 23:24:13 +01:00
Henrik Rydgard
cf458dba60 gpu: Add support for scissor rectangle 2013-03-15 22:24:16 +01:00
Henrik Rydgard
bef3ef7fac Fix aspect ratio in unbuffered mode 2013-03-15 21:22:17 +01:00
raven02
ecb4de09a6 Put ditherenable & alphaBlendEnable as function 2013-02-27 22:36:09 +08:00
raven02
b36782a064 Fix shadow abormal in FF Type-0 2013-02-26 00:41:37 +08:00
raven02
24debfd259 Add !(gstate.zmsk & 1); to depthMask and remove duplicate GE_CMD_MATERIALUPDATE (exists in line69) 2013-02-24 17:50:05 +08:00
raven02
6b22266a00 Add glstate.depthTest.disable(); 2013-02-24 02:18:18 +08:00
raven02
8e550d9578 Set float for glstate.depthRange.set(0.0f, 1.0f) 2013-02-23 23:26:58 +08:00
Henrik Rydgard
44e2a69258 gpu: Clean up "Clear" mode handling. 2013-02-21 21:52:12 +01:00
Henrik Rydgard
28979e9250 Some work toward better FBO handling. Fixes some things, breaks some things.. 2013-02-21 21:37:19 +01:00
Henrik Rydgard
aef2376b34 Merge branch 'master' into framebuffer-texture
Conflicts:
	GPU/GLES/TextureCache.cpp
2013-02-09 21:18:46 +01:00
Henrik Rydgard
ca347da99c Depth range should not be applied in through mode. Fixes sky in Wipeout Pure. 2013-02-09 20:53:32 +01:00
Henrik Rydgard
bf7ad9e1c9 Also don't convert 16-bit bone weights to float. Fixes a bug from the last similar change. 2013-02-05 18:02:10 +01:00
Henrik Rydgard
ac7ffa5e03 Merge branch 'master' into framebuffer-texture
Conflicts:
	GPU/GLES/StateMapping.cpp
2013-02-04 23:55:11 +01:00
Henrik Rydgard
3ee6ff01e1 Fix screen size when not using buffered rendering on Android 2013-02-04 23:39:09 +01:00
Henrik Rydgard
a0c0d6a977 Initial support for texturing from framebuffers. 2013-02-01 00:18:23 +01:00
Henrik Rydgard
3b681d3854 Make GLES_GPU own texturecache 2013-01-30 20:40:26 +01:00
Henrik Rydgard
b1bbbc44fc Add enable/disable dithering. Respect chosen framebuffer color depth. 2013-01-23 23:04:09 +01:00
Henrik Rydgard
1b1a275dcc GPU "dirty" optimization, wip vertexcache 2013-01-20 13:15:46 +01:00
Henrik Rydgard
8ff96bbcd8 Defer vertex decoding until flush. Track draw calls so that they can be cached later. 2013-01-19 17:05:50 +01:00
Henrik Rydgard
7271e3fcd5 Fix fog and stencil buffer clearing. The latter fixes the sky in MotoGP. 2013-01-14 20:44:11 +01:00