diff options
| -rw-r--r-- | client/map/progress.gdshader | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/client/map/progress.gdshader b/client/map/progress.gdshader index 6e0d06ba..9567bcac 100644 --- a/client/map/progress.gdshader +++ b/client/map/progress.gdshader @@ -1,6 +1,7 @@  /*      Undercooked - a game about cooking      Copyright 2024 nokoe +    Copyright 2024 tpart      This program is free software: you can redistribute it and/or modify      it under the terms of the GNU Affero General Public License as published by @@ -16,19 +17,21 @@  */  shader_type spatial; +render_mode unshaded;  uniform float progress = 0.;  uniform bool bad = false;  void fragment() { -	vec3 color = vec3(0., 1., 0.); +	vec3 color = vec3(0., .5, 0.);  	float alpha_fac = 1.;  	if (bad) {  		color = vec3(1., 0., 0.);  		alpha_fac = sin(TIME * 15.) * .5 + 1.;  	}  	if (UV.x > progress) { -		ALPHA = 0.1; +		ALPHA = 1.; +		color = vec3(0.1, 0.1, 0.1);  	}  	ALPHA *= alpha_fac;  	ALBEDO = color; | 
