3 uniform sampler1D texSampler1D;
\r
4 uniform sampler2D texSampler2D;
\r
5 uniform sampler3D texSampler3D;
\r
6 uniform samplerCube texSamplerCube;
\r
7 uniform sampler1DShadow shadowSampler1D;
\r
8 uniform sampler2DShadow shadowSampler2D;
\r
10 varying float blend;
\r
19 float blendscale = 1.789;
\r
23 float coords1D = 1.789;
\r
24 vec3 coords3D = vec3(1.789, 2.718, 3.453);
\r
25 vec4 coords4D = vec4(1.789, 2.718, 3.453, 2.0);
\r
26 vec4 color = vec4(0.0, 0.0, 0.0, 0.0);
\r
28 color += texture (texSampler1D, coords1D);
\r
29 color += texture (texSampler1D, coords1D, bias);
\r
30 color += textureProj(texSampler1D, coords2D);
\r
31 color += textureProj(texSampler1D, coords4D);
\r
32 color += textureProj(texSampler1D, coords2D, bias);
\r
33 color += textureProj(texSampler1D, coords4D, bias);
\r
35 color += texture (texSampler2D, coords2D);
\r
36 color += texture (texSampler2D, coords2D, bias);
\r
37 color += textureProj (texSampler2D, coords3D);
\r
38 color += textureProj (texSampler2D, coords4D, bias);
\r
40 color += texture (texSampler3D, coords3D);
\r
41 color += texture (texSampler3D, coords3D, bias);
\r
42 color += textureProj (texSampler3D, coords4D);
\r
43 color += textureProj (texSampler3D, coords4D, bias);
\r
45 color += texture (texSamplerCube, coords3D);
\r
46 color += texture (texSamplerCube, coords3D, bias);
\r
48 color += texture (shadowSampler1D, coords3D);
\r
49 color += texture (shadowSampler1D, coords3D, bias);
\r
50 color += texture (shadowSampler2D, coords3D);
\r
51 color += texture (shadowSampler2D, coords3D, bias);
\r
52 color += textureProj (shadowSampler1D, coords4D);
\r
53 color += textureProj (shadowSampler1D, coords4D, bias);
\r
54 color += textureProj (shadowSampler2D, coords4D);
\r
55 color += textureProj (shadowSampler2D, coords4D, bias);
\r
57 ivec2 iCoords2D = ivec2(0, 5);
\r
60 color += texelFetch(texSampler2D, iCoords2D, iLod);
\r
62 vec2 gradX = dFdx(coords2D);
\r
63 vec2 gradY = dFdy(coords2D);
\r
64 const ivec2 offset = ivec2(3, -7);
\r
66 color += textureGrad(texSampler2D, coords2D, gradX, gradY);
\r
67 color += textureProjGrad(texSampler2D, vec3(coords2D, proj), gradX, gradY);
\r
68 color += textureGradOffset(texSampler2D, coords2D, gradX, gradY, offset);
\r
69 color += textureProjGradOffset(texSampler2D, coords3D, gradX, gradY, offset);
\r
70 color += textureGrad(shadowSampler2D, vec3(coords2D, lod), gradX, gradY);
\r
72 gl_FragColor = mix(color, u, blend * blendscale);
\r