diff options
| author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-06-21 14:55:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-21 14:55:23 -0700 |
| commit | 72b69cea4bf9d01e520fb984a382de3e85af4e36 (patch) | |
| tree | ff8a7246f49a300a1bbcd0447ace505744ec48db /src/video_core/regs_lighting.h | |
| parent | c4f0927a62b0f31cf9ab6c0fe760c491e6c9b3db (diff) | |
| parent | 457659fe01891122881d8020da79c11732820913 (diff) | |
Merge pull request #2792 from wwylele/lutlutlut
gl_rasterizer: fix lighting LUT interpolation
Diffstat (limited to 'src/video_core/regs_lighting.h')
| -rw-r--r-- | src/video_core/regs_lighting.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/regs_lighting.h b/src/video_core/regs_lighting.h index 7221d1688..b89709cfe 100644 --- a/src/video_core/regs_lighting.h +++ b/src/video_core/regs_lighting.h @@ -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); |
