aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/regs_lighting.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-06-21 14:55:23 -0700
committerGitHub <noreply@github.com>2017-06-21 14:55:23 -0700
commit72b69cea4bf9d01e520fb984a382de3e85af4e36 (patch)
treeff8a7246f49a300a1bbcd0447ace505744ec48db /src/video_core/regs_lighting.h
parentc4f0927a62b0f31cf9ab6c0fe760c491e6c9b3db (diff)
parent457659fe01891122881d8020da79c11732820913 (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.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);