mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 15:37:27 -06:00
Add #version 120 to make shaders work on Windows
USL-32
This commit is contained in:
parent
3240338f6d
commit
adfe6ce63a
6 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
[shaders]
|
||||
vertex =
|
||||
#version 120
|
||||
uniform highp mat4 u_modelViewProjectionMatrix;
|
||||
uniform lowp float u_active_extruder;
|
||||
uniform lowp float u_shade_factor;
|
||||
|
@ -28,6 +29,7 @@ vertex =
|
|||
}
|
||||
|
||||
fragment =
|
||||
#version 120
|
||||
varying lowp vec4 v_color;
|
||||
varying float v_line_type;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[shaders]
|
||||
vertex =
|
||||
#version 120
|
||||
uniform highp mat4 u_modelViewProjectionMatrix;
|
||||
attribute highp vec4 a_vertex;
|
||||
attribute highp vec2 a_uvs;
|
||||
|
@ -13,6 +14,7 @@ vertex =
|
|||
}
|
||||
|
||||
fragment =
|
||||
#version 120
|
||||
uniform sampler2D u_layer0;
|
||||
uniform sampler2D u_layer1;
|
||||
uniform sampler2D u_layer2;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[shaders]
|
||||
vertex =
|
||||
#version 120
|
||||
uniform highp mat4 u_modelViewProjectionMatrix;
|
||||
|
||||
attribute highp vec4 a_vertex;
|
||||
|
@ -14,6 +15,7 @@ vertex =
|
|||
}
|
||||
|
||||
fragment =
|
||||
#version 120
|
||||
uniform lowp vec4 u_gridColor0;
|
||||
uniform lowp vec4 u_gridColor1;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[shaders]
|
||||
vertex =
|
||||
#version 120
|
||||
uniform highp mat4 u_modelMatrix;
|
||||
uniform highp mat4 u_viewProjectionMatrix;
|
||||
uniform highp mat4 u_normalMatrix;
|
||||
|
@ -21,6 +22,7 @@ vertex =
|
|||
}
|
||||
|
||||
fragment =
|
||||
#version 120
|
||||
uniform mediump vec4 u_ambientColor;
|
||||
uniform mediump vec4 u_diffuseColor;
|
||||
uniform mediump vec4 u_specularColor;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[shaders]
|
||||
vertex =
|
||||
#version 120
|
||||
uniform highp mat4 u_modelMatrix;
|
||||
uniform highp mat4 u_viewProjectionMatrix;
|
||||
uniform highp mat4 u_normalMatrix;
|
||||
|
@ -23,6 +24,7 @@ vertex =
|
|||
}
|
||||
|
||||
fragment =
|
||||
#version 120
|
||||
uniform mediump vec4 u_ambientColor;
|
||||
uniform mediump vec4 u_diffuseColor1;
|
||||
uniform mediump vec4 u_diffuseColor2;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[shaders]
|
||||
vertex =
|
||||
#version 120
|
||||
uniform highp mat4 u_modelMatrix;
|
||||
uniform highp mat4 u_viewProjectionMatrix;
|
||||
uniform highp mat4 u_normalMatrix;
|
||||
|
@ -21,6 +22,7 @@ vertex =
|
|||
}
|
||||
|
||||
fragment =
|
||||
#version 120
|
||||
uniform mediump vec4 u_ambientColor;
|
||||
uniform mediump vec4 u_diffuseColor;
|
||||
uniform highp vec3 u_lightPosition;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue