diff options
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 18 |
2 files changed, 11 insertions, 9 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index da4121c35..30187d4cf 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp | |||
| @@ -874,6 +874,8 @@ void RasterizerOpenGL::SetShader() { | |||
| 874 | 874 | ||
| 875 | SyncGlobalAmbient(); | 875 | SyncGlobalAmbient(); |
| 876 | for (int light_index = 0; light_index < 8; light_index++) { | 876 | for (int light_index = 0; light_index < 8; light_index++) { |
| 877 | SyncLightSpecular0(light_index); | ||
| 878 | SyncLightSpecular1(light_index); | ||
| 877 | SyncLightDiffuse(light_index); | 879 | SyncLightDiffuse(light_index); |
| 878 | SyncLightAmbient(light_index); | 880 | SyncLightAmbient(light_index); |
| 879 | SyncLightPosition(light_index); | 881 | SyncLightPosition(light_index); |
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 5aa638985..8d6177e88 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h | |||
| @@ -332,18 +332,24 @@ private: | |||
| 332 | /// Syncs the depth test states to match the PICA register | 332 | /// Syncs the depth test states to match the PICA register |
| 333 | void SyncDepthTest(); | 333 | void SyncDepthTest(); |
| 334 | 334 | ||
| 335 | /// Syncs the TEV constant color to match the PICA register | ||
| 336 | void SyncTevConstColor(int tev_index, const Pica::Regs::TevStageConfig& tev_stage); | ||
| 337 | |||
| 338 | /// Syncs the TEV combiner color buffer to match the PICA register | 335 | /// Syncs the TEV combiner color buffer to match the PICA register |
| 339 | void SyncCombinerColor(); | 336 | void SyncCombinerColor(); |
| 340 | 337 | ||
| 338 | /// Syncs the TEV constant color to match the PICA register | ||
| 339 | void SyncTevConstColor(int tev_index, const Pica::Regs::TevStageConfig& tev_stage); | ||
| 340 | |||
| 341 | /// Syncs the lighting global ambient color to match the PICA register | 341 | /// Syncs the lighting global ambient color to match the PICA register |
| 342 | void SyncGlobalAmbient(); | 342 | void SyncGlobalAmbient(); |
| 343 | 343 | ||
| 344 | /// Syncs the lighting lookup tables | 344 | /// Syncs the lighting lookup tables |
| 345 | void SyncLightingLUT(unsigned index); | 345 | void SyncLightingLUT(unsigned index); |
| 346 | 346 | ||
| 347 | /// Syncs the specified light's specular 0 color to match the PICA register | ||
| 348 | void SyncLightSpecular0(int light_index); | ||
| 349 | |||
| 350 | /// Syncs the specified light's specular 1 color to match the PICA register | ||
| 351 | void SyncLightSpecular1(int light_index); | ||
| 352 | |||
| 347 | /// Syncs the specified light's diffuse color to match the PICA register | 353 | /// Syncs the specified light's diffuse color to match the PICA register |
| 348 | void SyncLightDiffuse(int light_index); | 354 | void SyncLightDiffuse(int light_index); |
| 349 | 355 | ||
| @@ -353,12 +359,6 @@ private: | |||
| 353 | /// Syncs the specified light's position to match the PICA register | 359 | /// Syncs the specified light's position to match the PICA register |
| 354 | void SyncLightPosition(int light_index); | 360 | void SyncLightPosition(int light_index); |
| 355 | 361 | ||
| 356 | /// Syncs the specified light's specular 0 color to match the PICA register | ||
| 357 | void SyncLightSpecular0(int light_index); | ||
| 358 | |||
| 359 | /// Syncs the specified light's specular 1 color to match the PICA register | ||
| 360 | void SyncLightSpecular1(int light_index); | ||
| 361 | |||
| 362 | OpenGLState state; | 362 | OpenGLState state; |
| 363 | 363 | ||
| 364 | RasterizerCacheOpenGL res_cache; | 364 | RasterizerCacheOpenGL res_cache; |