mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
Shader recompiler: Add depth mapping
This commit is contained in:
parent
c8eb1c1128
commit
0878474e01
4 changed files with 27 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue