Shader recompiler: Add depth mapping

This commit is contained in:
wheremyfoodat 2024-07-15 04:30:04 +03:00
parent c8eb1c1128
commit 0878474e01
4 changed files with 27 additions and 4 deletions

View file

@ -16,6 +16,7 @@ namespace PICA {
// Merge the enable + compare function into 1 field to avoid duplicate shaders
// enable == off means a CompareFunction of Always
BitField<0, 3, CompareFunction> alphaTestFunction;
BitField<4, 1, u32> depthMapEnable;
};
};

View file

@ -11,6 +11,8 @@ namespace PICA {
static constexpr usize tevStageCount = 6;
s32 alphaReference;
float depthScale;
float depthOffset;
alignas(16) vec4 constantColors[tevStageCount];
alignas(16) vec4 tevBufferColor;