Release/v6.2 #35

Merged
ChaoticByte merged 9 commits from release/v6.2 into main 2025-01-10 19:58:28 +00:00
Showing only changes of commit 6c48c9fe72 - Show all commits

View file

@ -3,13 +3,11 @@ shader_type canvas_item;
//!load ./swamp.jpg //!load ./swamp.jpg
// Settings // Settings
const float threshold = 0.5; const float threshold = 0.6;
// //
void fragment() { void fragment() {
vec4 tex = texture(TEXTURE , UV); vec4 tex = texture(TEXTURE , UV);
COLOR.r = min(tex.r, threshold); COLOR.rgb = min(tex.rgb, vec3(threshold));
COLOR.g = min(tex.g, threshold);
COLOR.b = min(tex.b, threshold);
COLOR.a = tex.a; COLOR.a = tex.a;
} }