mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 11:46:27 +00:00
PixelShaderGen: For custom textures and scaled EFB copies, use correct texel to pixel mapping when sampling textures
(D3D9 only)
This is basically the same as revision e58692653a
, just for scaled textures and with a LOT more work...
This commit is contained in:
parent
d068686a7f
commit
9adc119e3c
8 changed files with 61 additions and 25 deletions
|
@ -24,26 +24,27 @@
|
|||
#define I_KCOLORS "k"
|
||||
#define I_ALPHA "alphaRef"
|
||||
#define I_TEXDIMS "texdim"
|
||||
#define I_VTEXSCALE "vtexscale"
|
||||
#define I_ZBIAS "czbias"
|
||||
#define I_INDTEXSCALE "cindscale"
|
||||
#define I_INDTEXMTX "cindmtx"
|
||||
#define I_FOG "cfog"
|
||||
#define I_PLIGHTS "cLights"
|
||||
#define I_PMATERIALS "cmtrl"
|
||||
#define I_PMATERIALS "cmtrl"
|
||||
|
||||
#define C_COLORMATRIX 0 // 0
|
||||
#define C_COLORS 0 // 0
|
||||
#define C_KCOLORS (C_COLORS + 4) // 4
|
||||
#define C_ALPHA (C_KCOLORS + 4) // 8
|
||||
#define C_TEXDIMS (C_ALPHA + 1) // 9
|
||||
#define C_ZBIAS (C_TEXDIMS + 8) //17
|
||||
#define C_INDTEXSCALE (C_ZBIAS + 2) //19
|
||||
#define C_INDTEXMTX (C_INDTEXSCALE + 2) //21
|
||||
#define C_FOG (C_INDTEXMTX + 6) //27
|
||||
|
||||
#define C_PLIGHTS (C_FOG + 3)
|
||||
#define C_PMATERIALS (C_PLIGHTS + 40)
|
||||
#define C_PENVCONST_END (C_PMATERIALS + 4)
|
||||
#define C_VTEXSCALE (C_TEXDIMS + 8) //17 - virtual texture scaling factor (e.g. custom textures, scaled EFB copies)
|
||||
#define C_ZBIAS (C_VTEXSCALE + 4) //21
|
||||
#define C_INDTEXSCALE (C_ZBIAS + 2) //23
|
||||
#define C_INDTEXMTX (C_INDTEXSCALE + 2) //25
|
||||
#define C_FOG (C_INDTEXMTX + 6) //31
|
||||
#define C_PLIGHTS (C_FOG + 3) //34
|
||||
#define C_PMATERIALS (C_PLIGHTS + 40) //74
|
||||
#define C_PENVCONST_END (C_PMATERIALS + 4) //78
|
||||
#define PIXELSHADERUID_MAX_VALUES 70
|
||||
#define PIXELSHADERUID_MAX_VALUES_SAFE 120
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue