diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 56 |
1 files changed, 27 insertions, 29 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index d7eac5213..111448b70 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h | |||
| @@ -139,39 +139,37 @@ struct PicaShaderConfig { | |||
| 139 | return std::memcmp(this, &o, sizeof(PicaShaderConfig)) == 0; | 139 | return std::memcmp(this, &o, sizeof(PicaShaderConfig)) == 0; |
| 140 | }; | 140 | }; |
| 141 | 141 | ||
| 142 | struct { | 142 | Pica::Regs::CompareFunc alpha_test_func = Pica::Regs::CompareFunc::Never; |
| 143 | Pica::Regs::CompareFunc alpha_test_func = Pica::Regs::CompareFunc::Never; | 143 | std::array<Pica::Regs::TevStageConfig, 6> tev_stages = {}; |
| 144 | std::array<Pica::Regs::TevStageConfig, 6> tev_stages = {}; | 144 | u8 combiner_buffer_input = 0; |
| 145 | u8 combiner_buffer_input = 0; | ||
| 146 | 145 | ||
| 146 | struct { | ||
| 147 | struct { | 147 | struct { |
| 148 | struct { | 148 | unsigned num = 0; |
| 149 | unsigned num = 0; | 149 | bool directional = false; |
| 150 | bool directional = false; | 150 | bool two_sided_diffuse = false; |
| 151 | bool two_sided_diffuse = false; | 151 | bool dist_atten_enable = false; |
| 152 | bool dist_atten_enable = false; | 152 | GLfloat dist_atten_scale = 0.0f; |
| 153 | GLfloat dist_atten_scale = 0.0f; | 153 | GLfloat dist_atten_bias = 0.0f; |
| 154 | GLfloat dist_atten_bias = 0.0f; | 154 | } light[8]; |
| 155 | } light[8]; | 155 | |
| 156 | bool enable = false; | ||
| 157 | unsigned src_num = 0; | ||
| 158 | Pica::Regs::LightingBumpMode bump_mode = Pica::Regs::LightingBumpMode::None; | ||
| 159 | unsigned bump_selector = 0; | ||
| 160 | bool bump_renorm = false; | ||
| 161 | bool clamp_highlights = false; | ||
| 162 | |||
| 163 | Pica::Regs::LightingConfig config = Pica::Regs::LightingConfig::Config0; | ||
| 164 | Pica::Regs::LightingFresnelSelector fresnel_selector = Pica::Regs::LightingFresnelSelector::None; | ||
| 156 | 165 | ||
| 166 | struct { | ||
| 157 | bool enable = false; | 167 | bool enable = false; |
| 158 | unsigned src_num = 0; | 168 | bool abs_input = false; |
| 159 | Pica::Regs::LightingBumpMode bump_mode = Pica::Regs::LightingBumpMode::None; | 169 | Pica::Regs::LightingLutInput type = Pica::Regs::LightingLutInput::NH; |
| 160 | unsigned bump_selector = 0; | 170 | float scale = 1.0f; |
| 161 | bool bump_renorm = false; | 171 | } lut_d0, lut_d1, lut_fr, lut_rr, lut_rg, lut_rb; |
| 162 | bool clamp_highlights = false; | 172 | } lighting; |
| 163 | |||
| 164 | Pica::Regs::LightingConfig config = Pica::Regs::LightingConfig::Config0; | ||
| 165 | Pica::Regs::LightingFresnelSelector fresnel_selector = Pica::Regs::LightingFresnelSelector::None; | ||
| 166 | |||
| 167 | struct { | ||
| 168 | bool enable = false; | ||
| 169 | bool abs_input = false; | ||
| 170 | Pica::Regs::LightingLutInput type = Pica::Regs::LightingLutInput::NH; | ||
| 171 | float scale = 1.0f; | ||
| 172 | } lut_d0, lut_d1, lut_fr, lut_rr, lut_rg, lut_rb; | ||
| 173 | } lighting; | ||
| 174 | }; | ||
| 175 | }; | 173 | }; |
| 176 | 174 | ||
| 177 | namespace std { | 175 | namespace std { |