Remove superfluous grid shader

The grid shader is now exactly equal to the colour shader, so let's just use the colour shader.

Contributes to issue CURA-4150.
This commit is contained in:
Ghostkeeper 2017-08-17 15:25:27 +02:00
parent bb3f8d085b
commit 585b6ad8eb
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75
2 changed files with 6 additions and 64 deletions

View file

@ -1,59 +0,0 @@
[shaders]
vertex =
uniform highp mat4 u_modelViewProjectionMatrix;
attribute highp vec4 a_vertex;
attribute lowp vec2 a_uvs;
varying lowp vec2 v_uvs;
void main()
{
gl_Position = u_modelViewProjectionMatrix * a_vertex;
v_uvs = a_uvs;
}
fragment =
uniform lowp vec4 u_buildplateColor;
varying lowp vec2 v_uvs;
void main()
{
gl_FragColor = u_buildplateColor;
}
vertex41core =
#version 410
uniform highp mat4 u_modelViewProjectionMatrix;
in highp vec4 a_vertex;
in lowp vec2 a_uvs;
out lowp vec2 v_uvs;
void main()
{
gl_Position = u_modelViewProjectionMatrix * a_vertex;
v_uvs = a_uvs;
}
fragment41core =
#version 410
uniform lowp vec4 u_buildplateColor;
in lowp vec2 v_uvs;
out vec4 frag_color;
void main()
{
gl_FragColor = u_buildplateColor;
}
[defaults]
u_buildplateColor = [0.96, 0.96, 0.96, 1.0]
[bindings]
u_modelViewProjectionMatrix = model_view_projection_matrix
[attributes]
a_vertex = vertex
a_uvs = uv0