mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-12 05:40:04 +00:00
gl_rasterizer/lighting: fix LUT interpolation
This commit is contained in:
parent
d0888f8548
commit
ab60414122
7 changed files with 102 additions and 116 deletions
|
@ -26,6 +26,8 @@ struct LightingRegs {
|
|||
DistanceAttenuation = 16,
|
||||
};
|
||||
|
||||
static constexpr unsigned NumLightingSampler = 24;
|
||||
|
||||
static LightingSampler SpotlightAttenuationSampler(unsigned index) {
|
||||
return static_cast<LightingSampler>(
|
||||
static_cast<unsigned>(LightingSampler::SpotlightAttenuation) + index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue