PIPI
This commit is contained in:
		
							
								
								
									
										9
									
								
								hud.gdshader
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								hud.gdshader
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| shader_type canvas_item; | ||||
|  | ||||
| uniform float fill; | ||||
|  | ||||
| void fragment() { | ||||
| 	if ((fill + 0.5) * 0.5 >= 1.0 - UV.y) | ||||
| 		COLOR = vec4(0.1, 0.4, 0.4, texture(TEXTURE, UV).a); | ||||
| 	else COLOR = texture(TEXTURE, UV); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user