• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 310 es
2precision mediump float;
3precision mediump int;
4layout(binding = 0) uniform mediump sampler2D texM;
5layout(binding = 1) uniform highp sampler2D texH;
6layout(binding = 0, rgba32f) uniform readonly mediump image2D imageM;
7layout(binding = 1, rgba32f) uniform readonly highp image2D imageH;
8
9layout(location = 0) in highp vec4 vertex;
10layout(location = 1) flat in highp ivec2 coord;
11layout(location = 0) out vec4 fragColor;
12
13void main()
14{
15    vec4 v;
16    v = texture(texM, vertex.xy);
17    v = texture(texH, vertex.xy);
18    v = textureLod(texM, vertex.xy, vertex.z);
19    v = textureLod(texH, vertex.xy, vertex.z);
20    v = textureProj(texM, vertex.xyz);
21    v = textureProj(texH, vertex.xyz);
22    v = imageLoad(imageM, coord);
23    v = imageLoad(imageH, coord);
24}