• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 400
2
3uniform sampler2D texSampler2D;
4uniform sampler3D texSampler3D;
5
6in float blend;
7in vec2 scale;
8in vec4 u;
9
10in vec2 t;
11in vec3 coords;
12
13void main()
14{
15    float blendscale = 1.789;
16
17    vec4 v = texture(texSampler2D, (t + scale) / scale ).wzyx;
18
19	vec4 w = texture(texSampler3D, coords) + v;
20
21    gl_FragColor = mix(w, u, blend * blendscale);
22}
23