Moar lighting

This commit is contained in:
wheremyfoodat 2024-07-18 20:10:20 +03:00
parent c9a4e4e41e
commit b4ae32960c
3 changed files with 50 additions and 3 deletions

View file

@ -252,7 +252,8 @@ namespace PICA {
enum : u32 {
LUT_D0 = 0,
LUT_D1,
LUT_FR,
// LUT 2 is not used, the emulator internally uses it for referring to the current source's spotlight in shaders
LUT_FR = 0x3,
LUT_RB,
LUT_RG,
LUT_RR,

View file

@ -27,7 +27,8 @@ namespace PICA::ShaderGen {
void applyAlphaTest(std::string& shader, const PICARegs& regs);
void compileLights(std::string& shader, const PICA::FragmentConfig& config);
void compileLUTLookup(std::string& shader, u32 lightIndex, u32 lutIndex, bool abs);
void compileLUTLookup(std::string& shader, const PICA::FragmentConfig& config, const PICARegs& regs, u32 lightIndex, u32 lutID, bool abs);
bool isSamplerEnabled(u32 environmentID, u32 lutID);
u32 textureConfig = 0;