4 * require_extensions: ${extensions}
7 #extension GL_EXT_gpu_shader4 : require
9 uniform ${prefix}sampler${param.sampler} s;
11 attribute ${param.coord} coord;
12 attribute ${param.grad} dPdx;
13 attribute ${param.grad} dPdy;
14 flat varying ${prefix}vec4 color;
19 color = ${param.func}Grad${offset}(s, coord, dPdx, dPdy
20 % if offset == 'Offset':
21 , ${param.offsetcoord}(1)