This file is indexed.

/usr/share/openmsx/shaders/rgb.frag is in openmsx-data 0.8.2-2.1.

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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// $Id: rgb.frag 11191 2010-01-25 00:49:16Z mthuurne $

uniform sampler2D tex;
uniform sampler2D videoTex;
uniform vec4 cnsts;

varying vec4 scaled;
varying vec2 pos;
varying vec2 videoCoord;

// saturate operations are free on nvidia hardware
vec3 saturate(vec3 x)
{
	return clamp(x, 0.0, 1.0);
}

void main()
{
	float scan_a    = cnsts.x; 
	float scan_b_c2 = cnsts.y; // scan_b * c2
	float scan_c_c2 = cnsts.z; // scan_c * c2
	float c1_2_2    = cnsts.w; // (c1 - c2) / c2

	float scan_c2 = scan_c_c2 + scan_b_c2 * abs(fract(scaled.w) - scan_a);

	const float BIG = 128.0; // big number, actual value is not important
	vec3 m = saturate((-BIG * fract(scaled.zyx)) + vec3(2.0 * BIG / 3.0));

	vec4 col = texture2D(tex, pos);
#if SUPERIMPOSE
	vec4 vid = texture2D(videoTex, videoCoord);
	vec4 p = mix(vid, col, col.a);
#else
	vec4 p = col;
#endif
	vec3 n = p.rgb * scan_c2;
	vec3 s_n = n * c1_2_2 + saturate((n - 1.0) / 2.0);
	gl_FragColor.rgb = n + m * s_n;
	gl_FragColor.a   = p.a;
}