diff options
author | bobo1on1 <bobo1on1@svn> | 2010-01-14 02:00:24 +0000 |
---|---|---|
committer | bobo1on1 <bobo1on1@svn> | 2010-01-14 02:00:24 +0000 |
commit | ac8daaac496beef315f71265b2943775bc7c2500 (patch) | |
tree | 586722d96a5ac7918996a736ce05ee159c04aa51 /system/shaders/convolution-6x6.glsl | |
parent | 8a8d2f5142c6099367c66a6b8be1b0e9b9e64fec (diff) |
fixed: use a 1d kernel because it's about 10% faster
fixed: logging
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@26777 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'system/shaders/convolution-6x6.glsl')
-rw-r--r-- | system/shaders/convolution-6x6.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/shaders/convolution-6x6.glsl b/system/shaders/convolution-6x6.glsl index d1532f634a..e5fe9a29bb 100644 --- a/system/shaders/convolution-6x6.glsl +++ b/system/shaders/convolution-6x6.glsl @@ -1,11 +1,11 @@ uniform sampler2D img; uniform float stepx; uniform float stepy; -uniform sampler2D kernelTex; +uniform sampler1D kernelTex; vec3 weight(float pos) { - return texture2D(kernelTex, vec2(pos, 0.5)).rgb; + return texture1D(kernelTex, pos).rgb; } vec3 pixel(float xpos, float ypos) |