~ubuntu-branches/ubuntu/lucid/meshlab/lucid

« back to all changes in this revision

Viewing changes to meshlab/src/fgt/decorate_shadow/shader/vsmb/blurVSM.frag

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-10-08 16:40:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091008164041-0c2ealqv8b8uc20c
Tags: 1.2.2-1
* New upstream version
* Do not build filter_isoparametrization because liblevmar dependency
  is not (yet) in Debian
* Fix compilation with gcc-4.4, thanks to Jonathan Liu for the patch
  (closes: #539544)
* rules: Add compiler variables to the qmake call (for testing with new
  GCC versions)
* io_3ds.pro: Make LIBS and INCLUDEPATH point to Debian version of lib3ds
* io_epoch.pro: Make LIBS point to Debian version of libbz2
* control:
  - Move Homepage URL to the source package section
  - Update to standards-version 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
uniform sampler2D scene;
 
2
uniform vec2 scale;
 
3
void main() {
 
4
    vec4 color = vec4(vec3(0.0), 1.0);
 
5
 
 
6
    color += texture2D( scene, gl_TexCoord[0].st + vec2( -3.0 * scale.x, -3.0 * scale.y ) ) * 0.015625;
 
7
    color += texture2D( scene, gl_TexCoord[0].st + vec2( -2.0 * scale.x, -2.0 * scale.y ) )*0.09375;
 
8
    color += texture2D( scene, gl_TexCoord[0].st + vec2( -1.0 * scale.x, -1.0 * scale.y) )*0.234375;
 
9
    color += texture2D( scene, gl_TexCoord[0].st + vec2( 0.0 , 0.0) )*0.3125;
 
10
    color += texture2D( scene, gl_TexCoord[0].st + vec2( 1.0 * scale.x,  1.0 * scale.y ) )*0.234375;
 
11
    color += texture2D( scene, gl_TexCoord[0].st + vec2( 2.0 * scale.x,  2.0 * scale.y ) )*0.09375;
 
12
    color += texture2D( scene, gl_TexCoord[0].st + vec2( 3.0 * scale.x, 3.0 * scale.y ) ) * 0.015625;
 
13
 
 
14
    
 
15
    //gl_FragColor = color;//vec4(color.xyz, (0.5 - color.x));
 
16
    //if(scale.y == 0.0)
 
17
      gl_FragColor = color;//vec4(color.xyz, 0.5);
 
18
    //else
 
19
          //gl_FragColor = vec4(color.xyz, (0.5 - color.x));
 
20
 
 
21
}
 
 
b'\\ No newline at end of file'