Follow-up of d02dd9a3b5edc5668fb8535483f91bf3f87cd548 - Fixed rendering of modifiers in Cut Gizmo
This commit is contained in:
parent
7755231866
commit
8c28b60125
@ -52,8 +52,10 @@ void main()
|
||||
discard;
|
||||
|
||||
vec4 color;
|
||||
if (use_color_clip_plane)
|
||||
color = (color_clip_plane_dot < 0.0) ? uniform_color_clip_plane_1 : uniform_color_clip_plane_2;
|
||||
if (use_color_clip_plane) {
|
||||
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
|
||||
color = uniform_color;
|
||||
|
||||
|
@ -54,8 +54,10 @@ void main()
|
||||
discard;
|
||||
|
||||
vec4 color;
|
||||
if (use_color_clip_plane)
|
||||
color = (color_clip_plane_dot < 0.0) ? uniform_color_clip_plane_1 : uniform_color_clip_plane_2;
|
||||
if (use_color_clip_plane) {
|
||||
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
|
||||
color = uniform_color;
|
||||
|
||||
|
@ -54,8 +54,10 @@ void main()
|
||||
discard;
|
||||
|
||||
vec4 color;
|
||||
if (use_color_clip_plane)
|
||||
color = (color_clip_plane_dot < 0.0) ? uniform_color_clip_plane_1 : uniform_color_clip_plane_2;
|
||||
if (use_color_clip_plane) {
|
||||
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
|
||||
color = uniform_color;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user