Follow-up of d02dd9a3b5edc5668fb8535483f91bf3f87cd548 - Fixed rendering of modifiers in Cut Gizmo

This commit is contained in:
enricoturri1966 2023-02-14 11:15:02 +01:00 committed by YuSanka
parent 7755231866
commit 8c28b60125
3 changed files with 12 additions and 6 deletions

View File

@ -52,8 +52,10 @@ void main()
discard; discard;
vec4 color; vec4 color;
if (use_color_clip_plane) if (use_color_clip_plane) {
color = (color_clip_plane_dot < 0.0) ? uniform_color_clip_plane_1 : uniform_color_clip_plane_2; color.rgb = (color_clip_plane_dot < 0.0) ? uniform_color_clip_plane_1.rgb : uniform_color_clip_plane_2.rgb;
color.a = uniform_color.a;
}
else else
color = uniform_color; color = uniform_color;

View File

@ -54,8 +54,10 @@ void main()
discard; discard;
vec4 color; vec4 color;
if (use_color_clip_plane) if (use_color_clip_plane) {
color = (color_clip_plane_dot < 0.0) ? uniform_color_clip_plane_1 : uniform_color_clip_plane_2; color.rgb = (color_clip_plane_dot < 0.0) ? uniform_color_clip_plane_1.rgb : uniform_color_clip_plane_2.rgb;
color.a = uniform_color.a;
}
else else
color = uniform_color; color = uniform_color;

View File

@ -54,8 +54,10 @@ void main()
discard; discard;
vec4 color; vec4 color;
if (use_color_clip_plane) if (use_color_clip_plane) {
color = (color_clip_plane_dot < 0.0) ? uniform_color_clip_plane_1 : uniform_color_clip_plane_2; color.rgb = (color_clip_plane_dot < 0.0) ? uniform_color_clip_plane_1.rgb : uniform_color_clip_plane_2.rgb;
color.a = uniform_color.a;
}
else else
color = uniform_color; color = uniform_color;