mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-09 14:55:08 -06:00
Code cleanup
This commit is contained in:
parent
88b6835258
commit
af30a3ab7e
6 changed files with 4 additions and 146 deletions
|
@ -5,8 +5,7 @@ uniform vec4 uniform_color;
|
|||
uniform float percent_outline_radius;
|
||||
uniform float percent_center_radius;
|
||||
|
||||
|
||||
vec4 customizable_color(float radius, vec4 color)
|
||||
vec4 calc_color(float radius, vec4 color)
|
||||
{
|
||||
return ((radius < percent_center_radius) || (radius > 1.0 - percent_outline_radius)) ?
|
||||
vec4(0.5 * color.rgb, color.a) : color;
|
||||
|
@ -19,5 +18,5 @@ void main()
|
|||
if (radius > 1.0)
|
||||
discard;
|
||||
|
||||
gl_FragColor = customizable_color(radius, uniform_color);
|
||||
gl_FragColor = calc_color(radius, uniform_color);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue