diff options
author | bunnei <bunneidev@gmail.com> | 2016-02-04 06:03:20 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 23:20:23 +0100 |
commit | aaa7beeda8be312294a32e620a172c33cb231866 (patch) | |
tree | 320f9eabc0af6556a74a2237f3462ef5c9490561 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | gl_rasterizer: Fix issue with interpolation of opposite quaternions. (diff) | |
download | yuzu-aaa7beeda8be312294a32e620a172c33cb231866.tar yuzu-aaa7beeda8be312294a32e620a172c33cb231866.tar.gz yuzu-aaa7beeda8be312294a32e620a172c33cb231866.tar.bz2 yuzu-aaa7beeda8be312294a32e620a172c33cb231866.tar.lz yuzu-aaa7beeda8be312294a32e620a172c33cb231866.tar.xz yuzu-aaa7beeda8be312294a32e620a172c33cb231866.tar.zst yuzu-aaa7beeda8be312294a32e620a172c33cb231866.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 6ed67efeb..b7d19bf94 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -920,7 +920,7 @@ void RasterizerOpenGL::SyncGlobalAmbient() { } void RasterizerOpenGL::SyncLightingLUT(unsigned lut_index) { - std::array<std::array<GLfloat, 4>, 256> new_data; + std::array<GLvec4, 256> new_data; for (unsigned offset = 0; offset < new_data.size(); ++offset) { new_data[offset][0] = Pica::g_state.lighting.luts[(lut_index * 4) + 0][offset].ToFloat(); @@ -969,7 +969,7 @@ void RasterizerOpenGL::SyncLightAmbient(int light_index) { } void RasterizerOpenGL::SyncLightPosition(int light_index) { - std::array<GLfloat, 3> position = { + GLvec3 position = { Pica::float16::FromRaw(Pica::g_state.regs.lighting.light[light_index].x).ToFloat32(), Pica::float16::FromRaw(Pica::g_state.regs.lighting.light[light_index].y).ToFloat32(), Pica::float16::FromRaw(Pica::g_state.regs.lighting.light[light_index].z).ToFloat32() }; |