Skip to content

Instantly share code, notes, and snippets.

@andrew-wilkes
Created June 25, 2020 10:07
Show Gist options
  • Save andrew-wilkes/74607433fe894fbf57c46859db4e06a8 to your computer and use it in GitHub Desktop.
Save andrew-wilkes/74607433fe894fbf57c46859db4e06a8 to your computer and use it in GitHub Desktop.
Godot make background brighter shader
shader_type canvas_item;
void fragment() {
vec3 c = textureLod(SCREEN_TEXTURE, SCREEN_UV, 0.0).rgb;
if (c.r < 0.3 || c.g < 0.3 || c.b < 0.3) c *= 1.2;
COLOR.rgb = c;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment