summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-11-20 04:42:06 +0100
committerbunnei <bunneidev@gmail.com>2016-02-05 23:19:16 +0100
commit0e67c21c9e5bb0e213d3b13bdd7592ff2a44a31c (patch)
tree413a8a8e30ff8a1d231b6abda32b02b54fd8f5f7 /src/video_core/renderer_opengl/gl_rasterizer.h
parentgl_shader_gen: Add support for D0 LUT scaling. (diff)
downloadyuzu-0e67c21c9e5bb0e213d3b13bdd7592ff2a44a31c.tar
yuzu-0e67c21c9e5bb0e213d3b13bdd7592ff2a44a31c.tar.gz
yuzu-0e67c21c9e5bb0e213d3b13bdd7592ff2a44a31c.tar.bz2
yuzu-0e67c21c9e5bb0e213d3b13bdd7592ff2a44a31c.tar.lz
yuzu-0e67c21c9e5bb0e213d3b13bdd7592ff2a44a31c.tar.xz
yuzu-0e67c21c9e5bb0e213d3b13bdd7592ff2a44a31c.tar.zst
yuzu-0e67c21c9e5bb0e213d3b13bdd7592ff2a44a31c.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h
index 72ded8f22..788618ed2 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer.h
@@ -91,6 +91,13 @@ struct PicaShaderConfig {
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.lut_d1.enable = regs.lighting.lut_enable_d1 == 0;
+ res.lighting.lut_d1.abs_input = regs.lighting.abs_lut_input.d1 == 0;
+ res.lighting.lut_d1.type = (Pica::Regs::LightingLutInput)regs.lighting.lut_input.d1.Value();
+ res.lighting.lut_d1.scale = regs.lighting.lut_scale.GetScale(regs.lighting.lut_scale.d1);
+
+ res.lighting.config = regs.lighting.config;
res.lighting.clamp_highlights = regs.lighting.clamp_highlights != 0;
return res;
@@ -126,6 +133,7 @@ struct PicaShaderConfig {
bool enable = false;
unsigned src_num = 0;
bool clamp_highlights = false;
+ Pica::Regs::LightingConfig config = Pica::Regs::LightingConfig::Config0;
struct {
bool enable = false;