GLSL 100 doesn't do automatic type conversions.. (int to float)
This commit is contained in:
		
							parent
							
								
									4a817f45e5
								
							
						
					
					
						commit
						a3c9f53335
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -33,7 +33,7 @@ void main()
 | 
			
		|||
 | 
			
		||||
	/* Apply bush alpha by mathematical if */
 | 
			
		||||
	float underBush = float(v_texCoord.y < bushDepth);
 | 
			
		||||
	frag.a *= clamp(bushOpacity + underBush, 0, 1);
 | 
			
		||||
	frag.a *= clamp(bushOpacity + underBush, 0.0, 1.0);
 | 
			
		||||
	
 | 
			
		||||
	gl_FragColor = frag;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue