diff options
author | bunnei <bunneidev@gmail.com> | 2015-11-12 23:33:21 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 23:17:29 +0100 |
commit | afbef525163af1b28e5b7493e58383d442762228 (patch) | |
tree | e68783a7770e400136654ae315021ecee24d6e21 /src/video_core/renderer_opengl/pica_to_gl.h | |
parent | pica: Implement decoding of basic fragment lighting components. (diff) | |
download | yuzu-afbef525163af1b28e5b7493e58383d442762228.tar yuzu-afbef525163af1b28e5b7493e58383d442762228.tar.gz yuzu-afbef525163af1b28e5b7493e58383d442762228.tar.bz2 yuzu-afbef525163af1b28e5b7493e58383d442762228.tar.lz yuzu-afbef525163af1b28e5b7493e58383d442762228.tar.xz yuzu-afbef525163af1b28e5b7493e58383d442762228.tar.zst yuzu-afbef525163af1b28e5b7493e58383d442762228.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/pica_to_gl.h')
-rw-r--r-- | src/video_core/renderer_opengl/pica_to_gl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/pica_to_gl.h b/src/video_core/renderer_opengl/pica_to_gl.h index 04c1d1a34..346c9391d 100644 --- a/src/video_core/renderer_opengl/pica_to_gl.h +++ b/src/video_core/renderer_opengl/pica_to_gl.h @@ -183,4 +183,11 @@ inline std::array<GLfloat, 4> ColorRGBA8(const u32 color) { } }; } +inline std::array<GLfloat, 3> LightColor(const Pica::Regs::LightColor& color) { + return { { color.r / 255.0f, + color.g / 255.0f, + color.b / 255.0f + } }; +} + } // namespace |