summaryrefslogtreecommitdiffstats
path: root/src/video_core/regs_lighting.h
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-06-16 13:00:15 +0200
committerwwylele <wwylele@gmail.com>2017-06-21 22:13:06 +0200
commitab60414122184851415a27ae8bcacb4aab0504b6 (patch)
treef26b042d908ede118686e781eedfec24539ab299 /src/video_core/regs_lighting.h
parentMerge pull request #2776 from wwylele/geo-factor (diff)
downloadyuzu-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 'src/video_core/regs_lighting.h')
-rw-r--r--src/video_core/regs_lighting.h2
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);