mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Tech ENABLE_GL_SHADERS_ATTRIBUTES - Added shaders for glsl version 140
(cherry picked from commit prusa3d/PrusaSlicer@76d1d4949b)
This commit is contained in:
		
							parent
							
								
									bb044754af
								
							
						
					
					
						commit
						1e4f16bd39
					
				
					 76 changed files with 1145 additions and 143 deletions
				
			
		
							
								
								
									
										12
									
								
								resources/shaders/140/gouraud_light_instanced.fs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								resources/shaders/140/gouraud_light_instanced.fs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
#version 140
 | 
			
		||||
 | 
			
		||||
uniform vec4 uniform_color;
 | 
			
		||||
uniform float emission_factor;
 | 
			
		||||
 | 
			
		||||
// x = tainted, y = specular;
 | 
			
		||||
in vec2 intensity;
 | 
			
		||||
 | 
			
		||||
void main()
 | 
			
		||||
{
 | 
			
		||||
    gl_FragColor = vec4(vec3(intensity.y) + uniform_color.rgb * (intensity.x + emission_factor), uniform_color.a);
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue