diff options
author | wwylele <wwylele@gmail.com> | 2017-06-16 13:00:15 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2017-06-21 22:13:06 +0200 |
commit | ab60414122184851415a27ae8bcacb4aab0504b6 (patch) | |
tree | f26b042d908ede118686e781eedfec24539ab299 /src/video_core/regs_lighting.h | |
parent | Merge pull request #2776 from wwylele/geo-factor (diff) | |
download | yuzu-ab60414122184851415a27ae8bcacb4aab0504b6.tar yuzu-ab60414122184851415a27ae8bcacb4aab0504b6.tar.gz yuzu-ab60414122184851415a27ae8bcacb4aab0504b6.tar.bz2 yuzu-ab60414122184851415a27ae8bcacb4aab0504b6.tar.lz yuzu-ab60414122184851415a27ae8bcacb4aab0504b6.tar.xz yuzu-ab60414122184851415a27ae8bcacb4aab0504b6.tar.zst yuzu-ab60414122184851415a27ae8bcacb4aab0504b6.zip |
Diffstat (limited to '')
-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); |