mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 21:59:37 +08:00
28 lines
451 B
GLSL
28 lines
451 B
GLSL
[shaders]
|
|
vertex =
|
|
uniform highp mat4 u_modelViewProjectionMatrix;
|
|
|
|
attribute highp vec4 a_vertex;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = u_modelViewProjectionMatrix * a_vertex;
|
|
}
|
|
|
|
fragment =
|
|
uniform lowp vec4 u_color;
|
|
|
|
void main()
|
|
{
|
|
gl_FragColor = u_color;
|
|
}
|
|
|
|
[defaults]
|
|
u_color = [0.02, 0.02, 0.02, 1.0]
|
|
|
|
[bindings]
|
|
u_modelViewProjectionMatrix = model_view_projection_matrix
|
|
|
|
[attributes]
|
|
a_vertex = vertex
|