• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 140
2
3uniform sampler1D       texSampler1D;
4uniform sampler2D       texSampler2D;
5uniform sampler3D       texSampler3D;
6uniform samplerCube	    texSamplerCube;
7uniform sampler1DShadow shadowSampler1D;
8uniform sampler2DShadow shadowSampler2D;
9
10in vec2 coords2D;
11
12void main()
13{
14    float lod		 = 3.0;
15    float coords1D   = 1.789;
16    vec3  coords3D   = vec3(1.789, 2.718, 3.453);
17    vec4  coords4D   = vec4(1.789, 2.718, 3.453, 2.0);
18    vec4  color      = vec4(0.0, 0.0, 0.0, 0.0);
19
20    color += textureLod(texSampler1D, coords1D, lod);
21    color += textureProjLod(texSampler1D, coords2D, lod);
22    color += textureProjLod(texSampler1D, coords4D, lod);
23
24    color += textureLod     (texSampler2D, coords2D, lod);
25    color += textureProjLod (texSampler2D, coords3D, lod);
26    color += textureProjLod (texSampler2D, coords4D, lod);
27
28    color += textureLod     (texSampler3D, coords3D, lod);
29    color += textureProjLod (texSampler3D, coords4D, lod);
30
31    color += textureLod (texSamplerCube, coords3D, lod);
32
33    color += textureLod    (shadowSampler1D, coords3D, lod);
34    color += textureLod    (shadowSampler2D, coords3D, lod);
35    color += textureProjLod(shadowSampler1D, coords4D, lod);
36    color += textureProjLod(shadowSampler2D, coords4D, lod);
37
38    gl_Position = color;
39}
40