mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			355 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			355 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
#version 120
 | 
						|
 | 
						|
uniform float zoom;
 | 
						|
uniform float point_size;
 | 
						|
uniform float near_plane_height;
 | 
						|
 | 
						|
varying vec3 eye_center;
 | 
						|
 | 
						|
void main()
 | 
						|
{
 | 
						|
    eye_center = (gl_ModelViewMatrix * gl_Vertex).xyz;
 | 
						|
    gl_Position = ftransform();
 | 
						|
    gl_PointSize = (gl_Position.w == 1.0) ? zoom * near_plane_height * point_size : near_plane_height * point_size / gl_Position.w;
 | 
						|
}
 |