/usr/share/uranium/resources/shaders/default.shader is in python3-uranium 3.1.0-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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | [shaders]
vertex =
uniform highp mat4 u_modelViewProjectionMatrix;
attribute highp vec4 a_vertex;
attribute lowp vec4 a_color;
varying lowp vec4 v_color;
void main()
{
gl_Position = u_modelViewProjectionMatrix * a_vertex;
v_color = a_color;
}
fragment =
uniform lowp vec4 u_color;
varying lowp vec4 v_color;
void main()
{
if(v_color != vec4(0.0, 0.0, 0.0, 1.0))
{
gl_FragColor = v_color;
}
else
{
gl_FragColor = u_color;
}
}
vertex41core =
#version 410
uniform highp mat4 u_modelViewProjectionMatrix;
in highp vec4 a_vertex;
in lowp vec4 a_color;
out lowp vec4 v_color;
void main()
{
gl_Position = u_modelViewProjectionMatrix * a_vertex;
v_color = a_color;
}
fragment41core =
#version 410
uniform lowp vec4 u_color;
in lowp vec4 v_color;
out vec4 frag_color;
void main()
{
if(v_color != vec4(0.0, 0.0, 0.0, 1.0))
{
frag_color = v_color;
}
else
{
frag_color = u_color;
}
}
[defaults]
u_color = [0.5, 0.5, 0.5, 1.0]
[bindings]
u_modelViewProjectionMatrix = model_view_projection_matrix
[attributes]
a_vertex = vertex
a_color = color
|