mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Faster gizmos update
This commit is contained in:
		
						commit
						550f6e307f
					
				
					 40 changed files with 1415 additions and 753 deletions
				
			
		| 
						 | 
				
			
			@ -14,6 +14,8 @@ const vec3 LIGHT_FRONT_DIR = vec3(0.6985074, 0.1397015, 0.6985074);
 | 
			
		|||
 | 
			
		||||
#define INTENSITY_AMBIENT    0.3
 | 
			
		||||
 | 
			
		||||
uniform mat4 volume_world_matrix;
 | 
			
		||||
 | 
			
		||||
// x = tainted, y = specular;
 | 
			
		||||
varying vec2 intensity;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -38,9 +40,8 @@ void main()
 | 
			
		|||
    NdotL = max(dot(normal, LIGHT_FRONT_DIR), 0.0);
 | 
			
		||||
    
 | 
			
		||||
    intensity.x += NdotL * LIGHT_FRONT_DIFFUSE;
 | 
			
		||||
    
 | 
			
		||||
    // Scaled to widths of the Z texture.
 | 
			
		||||
    object_z = gl_Vertex.z;
 | 
			
		||||
 | 
			
		||||
    // Scaled to widths of the Z texture.
 | 
			
		||||
    object_z = (volume_world_matrix * gl_Vertex).z;
 | 
			
		||||
    gl_Position = ftransform();
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue