diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-10-09 12:25:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-09 12:25:46 +0200 |
commit | 9f26733b44b40b070282a1555fcc105085d7b0fa (patch) | |
tree | ed40656c07dd38c469e3994b76aedbc01a11c819 /drivers | |
parent | 7e05d249e6756f8d6c4cd5963043072ec1529f61 (diff) | |
parent | 8cf5f615f5c1cde2284ddad1dd671ece4cb94df0 (diff) |
Merge pull request #11827 from hi-ogawa/fix-shader-type-error
Fix type error in subsurface scattering shader code
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles3/shaders/subsurf_scattering.glsl | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/drivers/gles3/shaders/subsurf_scattering.glsl b/drivers/gles3/shaders/subsurf_scattering.glsl index 20c3b7473f..fc66d66198 100644 --- a/drivers/gles3/shaders/subsurf_scattering.glsl +++ b/drivers/gles3/shaders/subsurf_scattering.glsl @@ -82,18 +82,18 @@ QUALIFIER vec2 kernel[17] = vec2[]( const int kernel_size=11; -QUALIFIER vec4 kernel[11] = vec4[]( - vec4(0.560479, 0.0), - vec4(0.00471691, -2.0), - vec4(0.0192831, -1.28), - vec4(0.03639, -0.72), - vec4(0.0821904, -0.32), - vec4(0.0771802, -0.08), - vec4(0.0771802, 0.08), - vec4(0.0821904, 0.32), - vec4(0.03639, 0.72), - vec4(0.0192831, 1.28), - vec4(0.00471691,2.0) +QUALIFIER vec2 kernel[11] = vec2[]( + vec2(0.560479, 0.0), + vec2(0.00471691, -2.0), + vec2(0.0192831, -1.28), + vec2(0.03639, -0.72), + vec2(0.0821904, -0.32), + vec2(0.0771802, -0.08), + vec2(0.0771802, 0.08), + vec2(0.0821904, 0.32), + vec2(0.03639, 0.72), + vec2(0.0192831, 1.28), + vec2(0.00471691,2.0) ); #endif //USE_11_SAMPLES @@ -190,4 +190,3 @@ void main() { frag_color = base_color; } } - |