• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 110
2/*
3 * 8.7 - Texture Lookup Functions
4 * "The bias parameter is not accepted in a vertex shader."
5 */
6vec4 texture1D       (sampler1D sampler, float coord, float bias);
7vec4 texture1DProj   (sampler1D sampler, vec2  coord, float bias);
8vec4 texture1DProj   (sampler1D sampler, vec4  coord, float bias);
9
10vec4 texture2D       (sampler2D sampler, vec2 coord, float bias);
11vec4 texture2DProj   (sampler2D sampler, vec3 coord, float bias);
12vec4 texture2DProj   (sampler2D sampler, vec4 coord, float bias);
13
14vec4 texture3D       (sampler3D sampler, vec3 coord, float bias);
15vec4 texture3DProj   (sampler3D sampler, vec4 coord, float bias);
16
17vec4 textureCube     (samplerCube sampler, vec3 coord, float bias);
18
19vec4 shadow1D       (sampler1DShadow sampler, vec3 coord, float bias);
20vec4 shadow2D       (sampler2DShadow sampler, vec3 coord, float bias);
21vec4 shadow1DProj   (sampler1DShadow sampler, vec4 coord, float bias);
22vec4 shadow2DProj   (sampler2DShadow sampler, vec4 coord, float bias);
23
24/*
25 * 8.8 - Fragment Processing Functions
26 */
27float dFdx(float p);
28vec2  dFdx(vec2  p);
29vec3  dFdx(vec3  p);
30vec4  dFdx(vec4  p);
31
32float dFdy(float p);
33vec2  dFdy(vec2  p);
34vec3  dFdy(vec3  p);
35vec4  dFdy(vec4  p);
36
37float fwidth(float p);
38vec2  fwidth(vec2  p);
39vec3  fwidth(vec3  p);
40vec4  fwidth(vec4  p);
41