diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-08-22 10:49:28 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-08-29 10:25:24 +0200 |
commit | 6e28e8441b698c3397c2c78125c877f2e9867cb1 (patch) | |
tree | 1e3ad0e43cb775854835817cd04bdc8b5e047e15 /src/opengl/util/linear_brush.glsl | |
parent | aaa4a26f82f99fa8724841eba91bad029306e0ce (diff) |
Copy core GL functionality to QtGui with QGL -> QOpenGL naming.
Change-Id: Ibc989afa4a30dd184d41d1a1cd89f97196e48855
Reviewed-on: http://codereview.qt.nokia.com/3710
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/opengl/util/linear_brush.glsl')
-rw-r--r-- | src/opengl/util/linear_brush.glsl | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/opengl/util/linear_brush.glsl b/src/opengl/util/linear_brush.glsl deleted file mode 100644 index 90a4440a99..0000000000 --- a/src/opengl/util/linear_brush.glsl +++ /dev/null @@ -1,22 +0,0 @@ -uniform sampler1D palette; -uniform vec3 linear; -uniform vec3 inv_matrix_m0; -uniform vec3 inv_matrix_m1; -uniform vec3 inv_matrix_m2; - -vec4 brush() -{ - mat3 mat; - - mat[0] = inv_matrix_m0; - mat[1] = inv_matrix_m1; - mat[2] = inv_matrix_m2; - - vec3 hcoords = mat * vec3(gl_FragCoord.xy, 1); - vec2 A = hcoords.xy / hcoords.z; - - float val = dot(linear.xy, A) * linear.z; - - return texture1D(palette, val); -} - |