diff options
author | bunnei <bunneidev@gmail.com> | 2015-11-20 01:00:42 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 23:18:36 +0100 |
commit | 781b0465795fb80404e2790be2d10bfb1f7149aa (patch) | |
tree | 33dc7c84f56ff9dc86aaf88aa4869812ee0f9643 /src/video_core/renderer_opengl/gl_shader_gen.cpp | |
parent | gl_shader_gen: Refactor lighting config to match Pica register naming. (diff) | |
download | yuzu-781b0465795fb80404e2790be2d10bfb1f7149aa.tar yuzu-781b0465795fb80404e2790be2d10bfb1f7149aa.tar.gz yuzu-781b0465795fb80404e2790be2d10bfb1f7149aa.tar.bz2 yuzu-781b0465795fb80404e2790be2d10bfb1f7149aa.tar.lz yuzu-781b0465795fb80404e2790be2d10bfb1f7149aa.tar.xz yuzu-781b0465795fb80404e2790be2d10bfb1f7149aa.tar.zst yuzu-781b0465795fb80404e2790be2d10bfb1f7149aa.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_gen.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_gen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index a2770cc6e..9044a3813 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -412,7 +412,7 @@ static void WriteLighting(std::string& out, const PicaShaderConfig& config) { std::string d0_lut_value = "1.0"; if (config.lighting.lut_d0.enable) { std::string d0_lut_index = GetLutIndex(light_config.num, config.lighting.lut_d0.type, config.lighting.lut_d0.abs_input); - d0_lut_value = GetLutValue(Regs::LightingSampler::Distribution0, d0_lut_index); + d0_lut_value = "(" + std::to_string(config.lighting.lut_d0.scale) + " * " + GetLutValue(Regs::LightingSampler::Distribution0, d0_lut_index) + ")"; } // Compute secondary fragment color (specular lighting) function |