mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	 90760e0d07
			
		
	
	
		90760e0d07
		
	
	
	
	
		
			
			1. add specific shader for thumbnail 2. do not render the negative-z part 3. fix the sinking related issue under cli Change-Id: Ia59083437544c1c0bd924c811274ccbb137e9eb7
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			350 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			350 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
| #version 110
 | |
| 
 | |
| uniform vec4 uniform_color;
 | |
| uniform float emission_factor;
 | |
| 
 | |
| // x = tainted, y = specular;
 | |
| varying vec2 intensity;
 | |
| //varying float drop;
 | |
| varying vec4 world_pos;
 | |
| 
 | |
| void main()
 | |
| {
 | |
|     if (world_pos.z < 0.0)
 | |
|         discard;
 | |
|     gl_FragColor = vec4(vec3(intensity.y) + uniform_color.rgb * (intensity.x + emission_factor), uniform_color.a);
 | |
| }
 |