diff options
author | bunnei <bunneidev@gmail.com> | 2015-11-14 04:52:20 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 23:17:29 +0100 |
commit | e9af70eaf3e9d190b2c75c039b004beb71f0e436 (patch) | |
tree | cf0703ef550c113c4689344ecc303a484fb97b9f /src/video_core/renderer_opengl/gl_shader_gen.cpp | |
parent | renderer_opengl: Implement diffuse component of HW fragment lighting. (diff) | |
download | yuzu-e9af70eaf3e9d190b2c75c039b004beb71f0e436.tar yuzu-e9af70eaf3e9d190b2c75c039b004beb71f0e436.tar.gz yuzu-e9af70eaf3e9d190b2c75c039b004beb71f0e436.tar.bz2 yuzu-e9af70eaf3e9d190b2c75c039b004beb71f0e436.tar.lz yuzu-e9af70eaf3e9d190b2c75c039b004beb71f0e436.tar.xz yuzu-e9af70eaf3e9d190b2c75c039b004beb71f0e436.tar.zst yuzu-e9af70eaf3e9d190b2c75c039b004beb71f0e436.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_gen.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index 5bc588b0b..4e02671dd 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -324,6 +324,7 @@ std::string GenerateFragmentShader(const PicaShaderConfig& config) { #version 330 core #define NUM_TEV_STAGES 6 #define NUM_LIGHTS 8 +#define LIGHTING_LUT_SIZE 256 in vec4 primary_color; in vec2 texcoord[3]; @@ -345,6 +346,12 @@ layout (std140) uniform shader_data { float depth_offset; vec3 lighting_global_ambient; LightSrc light_src[NUM_LIGHTS]; + vec4 lighting_lut_0[LIGHTING_LUT_SIZE]; + vec4 lighting_lut_1[LIGHTING_LUT_SIZE]; + vec4 lighting_lut_2[LIGHTING_LUT_SIZE]; + vec4 lighting_lut_3[LIGHTING_LUT_SIZE]; + vec4 lighting_lut_4[LIGHTING_LUT_SIZE]; + vec4 lighting_lut_5[LIGHTING_LUT_SIZE]; }; uniform sampler2D tex[3]; |