Commit graph

126 commits

Author SHA1 Message Date
Henrik Rydgard
a9a15d5196 Don't use dual source when stencil disabled 2013-12-16 23:41:42 +01:00
Henrik Rydgard
068d4f0ee5 Another typo fix 2013-12-16 23:40:30 +01:00
Henrik Rydgard
0d2ec01e83 Switch CanReplaceAlphaWithStencil response to an enum 2013-12-16 23:24:32 +01:00
raven02
7f828a6b66 Set float for gstate.getStencilTestRef() * (1.0f / 255.0f); 2013-12-15 21:40:14 +08:00
Henrik Rydgard
214cc01976 Fix bugs in stencil2alpha, fix bugs in glsl 3 support, enable dual source blending where available
The stencil2alpha bug fixes fix some glows in Wipeout, dual source fixes the rest.
2013-12-15 12:49:13 +01:00
raven02
2e7609b084 Cleanup ClearmodeDepthMask 2013-12-10 20:48:20 +08:00
Henrik Rydgard
bd1d4e2d92 As if softgpu wasn't slow enough already, implement bilinear filtering. 2013-12-09 01:44:23 +01:00
Unknown W. Brackets
2df1db4c7e Avoid optimizing out both constant colors. 2013-12-07 23:24:25 -08:00
Unknown W. Brackets
a4780f5199 Don't forget the alpha in non-fixed blending. 2013-12-07 23:21:45 -08:00
Unknown W. Brackets
808eeb3a25 Attempt to pick a better blend for stencil replace. 2013-12-07 10:02:46 -08:00
raven02
60def7baf9 Set src/dst alpha to non GL_ZERO in case STENCIL_VALUE_UNIFORM 2013-12-07 21:11:47 +08:00
Unknown W. Brackets
054501c100 Replace alpha when blend mode allows it.
Some games are using fixed/fixed blending modes which work in our favor.
2013-12-07 02:54:33 -08:00
Unknown W. Brackets
113f9795f3 Try to more correctly handle stencil when blending.
Although, not accurate, this will attempt to KEEP and etc.
2013-12-07 01:58:33 -08:00
Henrik Rydgard
c738364f67 Make sure to disable scissor when doing the initial clear of a new FBO.
Minor cleanups.
2013-12-06 23:08:37 +01:00
Henrik Rydgård
13cdbd5284 Mask away alpha when the stencil operation is KEEP 2013-12-06 11:15:13 +01:00
Henrik Rydgard
d1f054e033 Wait, we're not in clear mode there so no need to check. 2013-12-04 13:17:41 +01:00
Henrik Rydgard
10b9e83353 Dest alpha mask: Try some rules that seem to make sense from what we know now. 2013-12-04 13:16:22 +01:00
Henrik Rydgard
33efffe759 When blending (and we thus can't use stencil-to-alpha in frag shader), always write zero to alpha.
It seems the PSP doesn't blend in the alpha channel.

Reduces glow problems in Gods Eater Burst and Wipeout - although Wipeout loses some glow
that should be there.
2013-12-03 11:27:31 +01:00
Unknown W. Brackets
034de0e992 Do not wrap stencil values on INCR/DECR. 2013-12-03 00:02:07 -08:00
Henrik Rydgård
70e4214e2e Add comment with a link to an important github thread 2013-10-30 23:08:03 +01:00
Henrik Rydgård
07a868910e Add a temporary hack option that may help debugging the wipeout glow.
It reduces the glow problem by a lot but is obviously incorrect.
2013-10-30 22:47:36 +01:00
Henrik Rydgård
b896a29ec0 New attempt at solving #4272 by not using alpha in the backbuffer.
If some effect ends up requiring destination alpha, just use buffered
rendering.
2013-10-25 12:44:21 +02:00
Henrik Rydgard
5c8a74d911 Stencil rectangle clears: Take the value from the second vertex. 2013-10-10 21:36:32 +02:00
raven02
7bf6f6411c Set stencil ref value to 255 (8 bitplanes) 2^8-1=255 2013-10-10 21:59:37 +08:00
Henrik Rydgard
f645988b8f More precision annotations in shader generators, other microoptimizations 2013-10-07 20:15:00 +02:00
Unknown W. Brackets
a5e9c3b10a Get stencil/depth reading for ge debugger.
Possibly works on NVIDIA only...
2013-10-05 17:19:17 -07:00
Henrik Rydgard
f48e0af235 Better check for blendmode 2013-09-30 10:17:23 +02:00
Henrik Rydgard
e65d0b4791 Use EXT_blend_minmax when available. Minor tweaks. 2013-09-30 10:12:10 +02:00
raven02
748ae6a3e7 Workaround fix issue #3912 2013-09-28 00:28:53 +08:00
danyalzia
f1ca139444 Fixes Drawing size in non-buffered 2013-09-18 12:24:27 +05:00
raven02
8c3a89019b GE_BLENDMODE_ABSDIFF : Replace it using GL_MAX 2013-09-16 20:48:33 +08:00
Henrik Rydgård
3101f100ce Merge pull request #3774 from raven02/patch-8
Zeroize destination alpha as well when stencil test disabled.
2013-09-15 01:42:01 -07:00
raven02
b3bac26265 Only zeroize dst alpha when both stencil and depth testing disabled. 2013-09-15 14:10:57 +08:00
raven02
ecdc82fb19 Zeroize destination alpha as well when stencil test disabled. 2013-09-15 12:49:28 +08:00
Unknown W. Brackets
7b2dea4429 Use accessors for offsetx/y. 2013-09-14 11:06:48 -07:00
Unknown W. Brackets
40e3e8e930 Use a gstate enum, report unhandled blend mode. 2013-09-14 07:36:43 -07:00
Henrik Rydgård
74418c13bf Merge pull request #3646 from raven02/patch-17
Toggle option "Disable Stencil Test" & "Always Depth Write"
2013-09-09 00:06:00 -07:00
Henrik Rydgard
8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
raven02
a1aac79224 Toggle option "Disable Stencil Test" & "Always Depth Write" 2013-09-05 21:49:26 +08:00
raven02
557b721a87 Change to gstate.getDepthTestFunction() 2013-09-05 13:57:12 +08:00
Henrik Rydgard
b054f1d6e0 Revert "Add depthTest along with stencilTest since depth Fail/ZPass test used ."
This reverts commit 6624bb8100.
2013-09-04 13:31:58 +02:00
raven02
6624bb8100 Add depthTest along with stencilTest since depth Fail/ZPass test used . 2013-09-03 21:26:06 +08:00
raven02
0de4b415f4 Use glBlendFuncB for dstAlpha 2013-08-29 01:20:23 +08:00
Henrik Rydgård
9667b9e316 Merge pull request #3387 from raven02/patch-19
Use stenciltest for glblendFuncSeparate()
2013-08-26 05:55:01 -07:00
raven02
2442c24aee Use stenciltest for glblendFuncSeparate()
1
2013-08-26 17:49:59 +08:00
raven02
f49a2f7fa0 GLES: Skip GE_LOGIC_COPY for logic ops 2013-08-26 15:48:57 +08:00
Henrik Rydgard
554ca84556 Revert "More alpha hackery. This is starting to get embarrassing, really need to fix those tests."
This reverts commit 97a6921000.
2013-08-25 13:24:52 +02:00
Henrik Rydgard
97a6921000 More alpha hackery. This is starting to get embarrassing, really need to fix those tests. 2013-08-25 13:12:31 +02:00
Unknown W. Brackets
c141e94fe9 Use gstate.* accessors in a few more places. 2013-08-24 11:34:35 -07:00
Henrik Rydgard
772f9cc585 Adapt the basic spline code from the softgpu to the GL code.
Fixes (but not perfectly) games that make simple use of splines like LocoRoco.
(The locos are a little jagged)
2013-08-23 00:33:18 +02:00