diff options
author | bunnei <bunneidev@gmail.com> | 2015-11-15 23:43:01 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 23:17:31 +0100 |
commit | 021cb0bced1d8045f04b85024b97a07a4d0df12f (patch) | |
tree | af2e041a2625ebde8c5f734f2e0ab911aba11625 /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | renderer_opengl: Initial implementation of basic specular lighting. (diff) | |
download | yuzu-021cb0bced1d8045f04b85024b97a07a4d0df12f.tar yuzu-021cb0bced1d8045f04b85024b97a07a4d0df12f.tar.gz yuzu-021cb0bced1d8045f04b85024b97a07a4d0df12f.tar.bz2 yuzu-021cb0bced1d8045f04b85024b97a07a4d0df12f.tar.lz yuzu-021cb0bced1d8045f04b85024b97a07a4d0df12f.tar.xz yuzu-021cb0bced1d8045f04b85024b97a07a4d0df12f.tar.zst yuzu-021cb0bced1d8045f04b85024b97a07a4d0df12f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 9e93b8b2f..b50542701 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -264,11 +264,10 @@ private: std::array<GLfloat, 3> lighting_global_ambient; INSERT_PADDING_WORDS(1); LightSrc light_src[8]; - std::array<std::array<std::array<GLfloat, 4>, 256>, 6> lighting_lut; }; - static_assert(sizeof(UniformData) == 0x6210, "The size of the UniformData structure has changed, update the structure in the shader"); - static_assert(sizeof(UniformData) < 32768, "UniformData structure must be less than 32kb"); + static_assert(sizeof(UniformData) == 0x310, "The size of the UniformData structure has changed, update the structure in the shader"); + static_assert(sizeof(UniformData) < 16384, "UniformData structure must be less than 16kb as per the OpenGL spec"); /// Reconfigure the OpenGL color texture to use the given format and dimensions void ReconfigureColorTexture(TextureInfo& texture, Pica::Regs::ColorFormat format, u32 width, u32 height); @@ -378,7 +377,7 @@ private: struct { UniformData data; - bool lut_dirty[24]; + bool lut_dirty[6]; bool dirty; } uniform_block_data; @@ -386,4 +385,7 @@ private: OGLBuffer vertex_buffer; OGLBuffer uniform_buffer; OGLFramebuffer framebuffer; + + std::array<OGLTexture, 6> lighting_lut; + std::array<std::array<std::array<GLfloat, 4>, 256>, 6> lighting_lut_data; }; |