mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	ENABLE_ALLOW_NEGATIVE_Z -> Fixed picking of sinking object
This commit is contained in:
		
							parent
							
								
									bf981ae049
								
							
						
					
					
						commit
						b140709fa8
					
				
					 4 changed files with 53 additions and 2 deletions
				
			
		
							
								
								
									
										14
									
								
								resources/shaders/picking.fs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								resources/shaders/picking.fs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,14 @@
 | 
			
		|||
#version 110
 | 
			
		||||
 | 
			
		||||
uniform vec4 uniform_color;
 | 
			
		||||
uniform bool viewed_from_top;
 | 
			
		||||
 | 
			
		||||
varying float world_pos_z;
 | 
			
		||||
 | 
			
		||||
void main()
 | 
			
		||||
{
 | 
			
		||||
	if (viewed_from_top && world_pos_z < 0.0)
 | 
			
		||||
		discard;
 | 
			
		||||
	
 | 
			
		||||
    gl_FragColor = uniform_color;
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue