mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	GCodeViewer refactoring and GLShaderProgram upgrade
This commit is contained in:
		
							parent
							
								
									ed252f1741
								
							
						
					
					
						commit
						1c826c063b
					
				
					 5 changed files with 59 additions and 124 deletions
				
			
		| 
						 | 
				
			
			@ -5,10 +5,11 @@ uniform vec3 uniform_color;
 | 
			
		|||
void main()
 | 
			
		||||
{
 | 
			
		||||
    vec2 pos = gl_PointCoord - vec2(0.5, 0.5);
 | 
			
		||||
    float sq_radius = pos.x * pos.x + pos.y * pos.y;
 | 
			
		||||
    float sq_radius = dot(pos, pos);
 | 
			
		||||
    if (sq_radius > 0.25)
 | 
			
		||||
        discard;
 | 
			
		||||
    else if ((sq_radius < 0.005625) || (sq_radius > 0.180625))
 | 
			
		||||
        
 | 
			
		||||
    if ((sq_radius < 0.005625) || (sq_radius > 0.180625))
 | 
			
		||||
        gl_FragColor = vec4(0.5 * uniform_color, 1.0);
 | 
			
		||||
    else
 | 
			
		||||
        gl_FragColor = vec4(uniform_color, 1.0);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue