Simplify shader
This commit is contained in:
		
							parent
							
								
									b85988d194
								
							
						
					
					
						commit
						6b2c892280
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		| 
						 | 
					@ -5,9 +5,5 @@ varying vec4 v_color;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void main()
 | 
					void main()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	vec4 frag = vec4(0, 0, 0, 1);
 | 
						gl_FragColor = vec4(v_color.rgb * alpha, 1);
 | 
				
			||||||
 | 
					 | 
				
			||||||
	frag.rgb = mix(vec3(0, 0, 0), v_color.rgb, alpha);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	gl_FragColor = frag;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue