21 Commits

Author SHA1 Message Date
Remco Burema
538ccf5e21
Actually show 'on buildplate' color when z=0.
CURA-7871
2021-01-22 18:47:45 +01:00
Remco Burema
2837640315
Invert colors at lowest print height.
Instead of inverting them if below 0 (build-plate). Fixes #8735

CURA-7871
2020-11-20 12:32:58 +01:00
Remco Burema
3717181884
Don't show overhang on first layer or below buildplate. 2020-09-01 14:40:43 +02:00
Remco Burema
d7325be39f
Also change color _on_ the buildplate. 2020-09-01 14:25:01 +02:00
Remco Burema
8dbbe2bd3a
Use different colors below buildplate.
fixes #8254
2020-09-01 13:49:34 +02:00
Mark Burton
f02ac17a30 GL ES compatibility fixes. 2020-05-07 13:38:09 +01:00
Remco Burema
d078c465ee
Reduce branches in shader.
part of the further fallout of CURA-7147
2020-04-22 11:51:21 +02:00
Remco Burema
7ed59503d6
Round doesn't work for OpenGL 2.1 because it was only added in glsl 130.
So mad at myself right now >:-(
Part of the further fallout of CURA-7147
2020-04-22 11:49:27 +02:00
Jaime van Kessel
020f66b245
Add option to overhang shader to make rendering model errors optional
CURA-7147
2020-04-20 15:11:28 +02:00
Remco Burema
b59d38e6c9
Replace warning image with triadic colors.
part of CURA-7262
2020-04-07 12:06:13 +02:00
Remco Burema
9e64072b05 Older drivers can lie w.r.t. GLSL-version if it's forced lower.
... so don't use gl_PrimitiveID at all when in compatibility mode. This direct commit partly fixes github #6387 -- but see also the forthcoming PR in Uranium.
2019-09-21 14:58:59 +02:00
Diego Prado Gesto
c6f5f4fb33
Merge pull request #6308 from smartavionics/mb-fix-legacy-glsl-issue
Remove gl_PrimitiveID from shader when it's not available.
2019-09-10 17:33:02 +02:00
Remco Burema
e5a690e605 Wrap up 'lay flat by face' feature for 4.3-BETA.
Icon thanks to Yi-An Lai.
part of CURA-6754
2019-09-10 12:37:59 +02:00
Mark Burton
dffaf2f6c3 Exclude code that uses gl_PrimitiveID from shader when GLSL version < 150. 2019-09-05 10:53:15 +01:00
Remco Burema
b97015a354 Added 'align selected face with buildplate' feature.
Alt-click to select a face. See the (identically named) 'feature_bottom_face' branch in Uranium for more indepth information.
2019-09-02 00:17:14 +02:00
Remco Burema
ed6db6c9b0 Move multiplication from Python to shaders. (Needs the same-named Uranium branch.) 2019-04-19 16:58:38 +02:00
Jack Ha
e31a695061 WIP OpenGL 4.1 core profile. CURA-3273 2017-01-31 17:05:00 +01:00
Jack Ha
fc4c60b0dc Added layer view options 2016-12-30 14:31:53 +01:00
Jack Ha
61dcaf8811 wip 2016-12-20 11:45:05 +01:00
fieldOfView
2498e7110d Allow setting the diffuse_color with a uniform binding
CURA-345
2016-06-14 11:05:50 +02:00
Arjen Hiemstra
c5689e6256 Add SolidView plugin, which is what used to be Uranium's MeshView 2015-12-14 13:56:32 +01:00