mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
softgpu: Support fog and color1 on imm verts.
This commit is contained in:
1 parent
35ba01e01f
commit
596b07bd2e
9 files changed
+109
-43
No files matched your search
@@ -48,11 +48,11 @@ static inline PixelBlendFactor OptimizeAlphaFactor(uint32_t color) {
|
||||
return PixelBlendFactor::FIX;
|
||||
}
|
||||
|
||||
void ComputePixelFuncID(PixelFuncID *id, bool throughMode) {
|
||||
void ComputePixelFuncID(PixelFuncID *id) {
|
||||
id->fullKey = 0;
|
||||
|
||||
// TODO: Could this be minz > 0x0000 || maxz < 0xFFFF? Maybe unsafe, depending on verts...
|
||||
id->applyDepthRange = !throughMode;
|
||||
id->applyDepthRange = !gstate.isModeThrough();
|
||||
// Dither happens even in clear mode.
|
||||
id->dithering = gstate.isDitherEnabled();
|
||||
id->fbFormat = gstate.FrameBufFormat();
|
||||
@@ -169,7 +169,7 @@ void ComputePixelFuncID(PixelFuncID *id, bool throughMode) {
|
||||
}
|
||||
|
||||
id->applyLogicOp = gstate.isLogicOpEnabled() && gstate.getLogicOp() != GE_LOGIC_COPY;
|
||||
id->applyFog = gstate.isFogEnabled() && !throughMode;
|
||||
id->applyFog = gstate.isFogEnabled() && !gstate.isModeThrough();
|
||||
|
||||
id->earlyZChecks = id->DepthTestFunc() != GE_COMP_ALWAYS;
|
||||
if (id->stencilTest && id->earlyZChecks) {
|
||||
|
||||
Reference in new issue
Block a user