/usr/share/glmark2/shaders/jellyfish.frag is in glmark2-data 2014.03+git20150611.fa71af2d-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #ifdef GL_ES
precision highp float;
#endif
uniform sampler2D uSampler;
uniform sampler2D uSampler1;
uniform float uCurrentTime;
varying vec2 vTextureCoord;
varying vec4 vWorld;
varying vec3 vDiffuse;
varying vec3 vAmbient;
varying vec3 vFresnel;
void main(void)
{
vec4 caustics = texture2D(uSampler1, vec2(vWorld.x / 24.0 + uCurrentTime / 20.0, (vWorld.z - vWorld.y)/48.0 + uCurrentTime / 40.0));
vec4 colorMap = texture2D(uSampler, vTextureCoord);
float transparency = colorMap.a + pow(vFresnel.r, 2.0) - 0.3;
gl_FragColor = vec4(((vAmbient + vDiffuse + caustics.rgb) * colorMap.rgb), transparency);
}
|