PixelShaderGen: Implement table-based fog range as in software renderer

This commit is contained in:
Stenzek
2018-02-03 17:01:34 +10:00
parent e7d0aae5be
commit 340ee8fff8
5 changed files with 46 additions and 31 deletions

View File

@ -24,9 +24,10 @@ struct PixelShaderConstants
std::array<int4, 6> indtexmtx;
int4 fogcolor;
int4 fogi;
std::array<float4, 2> fogf;
float4 fogf;
std::array<float4, 3> fogrange;
float4 zslope;
std::array<float, 2> efbscale;
std::array<float, 2> efbscale; // .xy
// Constants from here onwards are only used in ubershaders.
u32 genmode; // .z