mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-23 14:27:52 +00:00
gl_rasterizer/lighting: fix LUT interpolation
This commit is contained in:
parent
2f5b8ebc73
commit
98a84efd39
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