mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	SLA slices preview - wip 3
This commit is contained in:
		
							parent
							
								
									21d5acfdd7
								
							
						
					
					
						commit
						e6369fe548
					
				
					 10 changed files with 122 additions and 25 deletions
				
			
		| 
						 | 
				
			
			@ -34,6 +34,8 @@ varying vec2 intensity;
 | 
			
		|||
varying vec3 delta_box_min;
 | 
			
		||||
varying vec3 delta_box_max;
 | 
			
		||||
 | 
			
		||||
varying float world_z;
 | 
			
		||||
 | 
			
		||||
void main()
 | 
			
		||||
{
 | 
			
		||||
    // First transform the normal into camera space and normalize the result.
 | 
			
		||||
| 
						 | 
				
			
			@ -67,4 +69,5 @@ void main()
 | 
			
		|||
    }    
 | 
			
		||||
 | 
			
		||||
    gl_Position = ftransform();
 | 
			
		||||
    world_z = vec3(print_box.volume_world_matrix * gl_Vertex).z;
 | 
			
		||||
} 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue