Jelajahi Sumber

HWRasterizer: sync specular uniform for new shaders

tfarley 10 tahun lalu
induk
melakukan
3268cab26b
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      src/video_core/renderer_opengl/gl_rasterizer.cpp

+ 2 - 0
src/video_core/renderer_opengl/gl_rasterizer.cpp

@@ -874,6 +874,8 @@ void RasterizerOpenGL::SetShader() {
 
 
         SyncGlobalAmbient();
         SyncGlobalAmbient();
         for (int light_index = 0; light_index < 8; light_index++) {
         for (int light_index = 0; light_index < 8; light_index++) {
+            SyncLightSpecular0(light_index);
+            SyncLightSpecular1(light_index);
             SyncLightDiffuse(light_index);
             SyncLightDiffuse(light_index);
             SyncLightAmbient(light_index);
             SyncLightAmbient(light_index);
             SyncLightPosition(light_index);
             SyncLightPosition(light_index);