Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemco Burema <r.burema@ultimaker.com>2019-07-02 17:20:12 +0300
committerRemco Burema <r.burema@ultimaker.com>2019-07-02 17:20:12 +0300
commita61e7ea7df1ec85b1d7dbf0686c9802f245df088 (patch)
tree4fe3374a6c80929f933ff367a3bda50fc452254c /resources/shaders
parenta4093aa6fda47f7b78dd5b2a977188c484777d8a (diff)
Fix striped (off-buildplate) shader for ortho-view.
part of CURA-6583
Diffstat (limited to 'resources/shaders')
-rw-r--r--resources/shaders/striped.shader4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/shaders/striped.shader b/resources/shaders/striped.shader
index 9da921a629..4e826fba26 100644
--- a/resources/shaders/striped.shader
+++ b/resources/shaders/striped.shader
@@ -45,7 +45,7 @@ fragment =
mediump vec4 finalColor = vec4(0.0);
mediump vec4 diffuseColor = u_vertical_stripes ?
(((mod(v_vertex.x, u_width) < (u_width / 2.)) ^^ (mod(v_vertex.z, u_width) < (u_width / 2.))) ? u_diffuseColor1 : u_diffuseColor2) :
- ((mod((-v_position.x + v_position.y), u_width) < (u_width / 2.)) ? u_diffuseColor1 : u_diffuseColor2);
+ ((mod((-v_vertex.x + v_vertex.y + v_vertex.z), u_width) < (u_width / 2.)) ? u_diffuseColor1 : u_diffuseColor2);
/* Ambient Component */
finalColor += u_ambientColor;
@@ -118,7 +118,7 @@ fragment41core =
mediump vec4 finalColor = vec4(0.0);
mediump vec4 diffuseColor = u_vertical_stripes ?
(((mod(v_vertex.x, u_width) < (u_width / 2.)) ^^ (mod(v_vertex.z, u_width) < (u_width / 2.))) ? u_diffuseColor1 : u_diffuseColor2) :
- ((mod((-v_position.x + v_position.y), u_width) < (u_width / 2.)) ? u_diffuseColor1 : u_diffuseColor2);
+ ((mod((-v_vertex.x + v_vertex.y + v_vertex.z), u_width) < (u_width / 2.)) ? u_diffuseColor1 : u_diffuseColor2);
/* Ambient Component */
finalColor += u_ambientColor;