diff options
author | bunnei <bunneidev@gmail.com> | 2015-11-24 02:26:09 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 23:20:13 +0100 |
commit | c37de30cfc21cd6d742eed27a996a273f5ec2ca1 (patch) | |
tree | 44757e1d0fd83110229e7fad641a54f2e6353baf /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | gl_shader_gen: Implement fragment lighting specular 1 component. (diff) | |
download | yuzu-c37de30cfc21cd6d742eed27a996a273f5ec2ca1.tar yuzu-c37de30cfc21cd6d742eed27a996a273f5ec2ca1.tar.gz yuzu-c37de30cfc21cd6d742eed27a996a273f5ec2ca1.tar.bz2 yuzu-c37de30cfc21cd6d742eed27a996a273f5ec2ca1.tar.lz yuzu-c37de30cfc21cd6d742eed27a996a273f5ec2ca1.tar.xz yuzu-c37de30cfc21cd6d742eed27a996a273f5ec2ca1.tar.zst yuzu-c37de30cfc21cd6d742eed27a996a273f5ec2ca1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 788618ed2..1d4d73ae1 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -97,7 +97,13 @@ struct PicaShaderConfig { 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.lut_fr.enable = regs.lighting.lut_enable_fr == 0; + res.lighting.lut_fr.abs_input = regs.lighting.abs_lut_input.fr == 0; + res.lighting.lut_fr.type = (Pica::Regs::LightingLutInput)regs.lighting.lut_input.fr.Value(); + res.lighting.lut_fr.scale = regs.lighting.lut_scale.GetScale(regs.lighting.lut_scale.fr); + res.lighting.config = regs.lighting.config; + res.lighting.fresnel_selector = regs.lighting.fresnel_selector; res.lighting.clamp_highlights = regs.lighting.clamp_highlights != 0; return res; @@ -134,6 +140,7 @@ struct PicaShaderConfig { unsigned src_num = 0; bool clamp_highlights = false; Pica::Regs::LightingConfig config = Pica::Regs::LightingConfig::Config0; + Pica::Regs::LightingFresnelSelector fresnel_selector = Pica::Regs::LightingFresnelSelector::None; struct { bool enable = false; |