summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-11-20 01:00:42 +0100
committerbunnei <bunneidev@gmail.com>2016-02-05 23:18:36 +0100
commit781b0465795fb80404e2790be2d10bfb1f7149aa (patch)
tree33dc7c84f56ff9dc86aaf88aa4869812ee0f9643 /src/video_core/renderer_opengl/gl_rasterizer.h
parentgl_shader_gen: Refactor lighting config to match Pica register naming. (diff)
downloadyuzu-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 '')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h
index 2042be786..72ded8f22 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer.h
@@ -90,6 +90,7 @@ struct PicaShaderConfig {
res.lighting.lut_d0.enable = regs.lighting.lut_enable_d0 == 0;
res.lighting.lut_d0.abs_input = regs.lighting.abs_lut_input.d0 == 0;
res.lighting.lut_d0.type = (Pica::Regs::LightingLutInput)regs.lighting.lut_input.d0.Value();
+ res.lighting.lut_d0.scale = regs.lighting.lut_scale.GetScale(regs.lighting.lut_scale.d0);
res.lighting.clamp_highlights = regs.lighting.clamp_highlights != 0;
return res;
@@ -130,7 +131,8 @@ struct PicaShaderConfig {
bool enable = false;
bool abs_input = false;
Pica::Regs::LightingLutInput type = Pica::Regs::LightingLutInput::NH;
- } lut_d0;
+ float scale = 1.0f;
+ } lut_d0, lut_d1, lut_fr;
} lighting;
};
};