mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 13:21:10 -07:00
Show models outside of BP clearly in layerview.
CURA-7586
This commit is contained in:
parent
8b59fe83d8
commit
99cd8ab1b0
2 changed files with 20 additions and 2 deletions
|
|
@ -29,6 +29,7 @@ fragment =
|
|||
uniform mediump vec4 u_diffuseColor1;
|
||||
uniform mediump vec4 u_diffuseColor2;
|
||||
uniform mediump vec4 u_specularColor;
|
||||
uniform mediump float u_opacity;
|
||||
uniform highp vec3 u_lightPosition;
|
||||
uniform mediump float u_shininess;
|
||||
uniform highp vec3 u_viewPosition;
|
||||
|
|
@ -65,7 +66,7 @@ fragment =
|
|||
finalColor += pow(NdotR, u_shininess) * u_specularColor;
|
||||
|
||||
gl_FragColor = finalColor;
|
||||
gl_FragColor.a = 1.0;
|
||||
gl_FragColor.a = u_opacity;
|
||||
}
|
||||
|
||||
vertex41core =
|
||||
|
|
@ -100,6 +101,7 @@ fragment41core =
|
|||
uniform mediump vec4 u_diffuseColor1;
|
||||
uniform mediump vec4 u_diffuseColor2;
|
||||
uniform mediump vec4 u_specularColor;
|
||||
uniform mediump float u_opacity;
|
||||
uniform highp vec3 u_lightPosition;
|
||||
uniform mediump float u_shininess;
|
||||
uniform highp vec3 u_viewPosition;
|
||||
|
|
@ -138,7 +140,7 @@ fragment41core =
|
|||
finalColor += pow(NdotR, u_shininess) * u_specularColor;
|
||||
|
||||
frag_color = finalColor;
|
||||
frag_color.a = 1.0;
|
||||
frag_color.a = u_opacity;
|
||||
}
|
||||
|
||||
[defaults]
|
||||
|
|
@ -146,6 +148,7 @@ u_ambientColor = [0.3, 0.3, 0.3, 1.0]
|
|||
u_diffuseColor1 = [1.0, 0.5, 0.5, 1.0]
|
||||
u_diffuseColor2 = [0.5, 0.5, 0.5, 1.0]
|
||||
u_specularColor = [0.4, 0.4, 0.4, 1.0]
|
||||
u_opacity = 1.0
|
||||
u_shininess = 20.0
|
||||
u_width = 5.0
|
||||
u_vertical_stripes = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue