Created
May 4, 2020 15:33
-
-
Save jimmyjonezz/693aa769b247c4ba5dfe2667e8d52eba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
uniform float brightness = 0.5; | |
void fragment(){ | |
vec4 pixel_color = texture(SCREEN_TEXTURE, SCREEN_UV, 1); | |
COLOR.rgb = vec3(dot(pixel_color.rgb, vec3(brightness, brightness, brightness))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
shader_type canvas_item;
render_mode unshaded;
void fragment() {
vec4 color = texture(SCREEN_TEXTURE, SCREEN_UV);
COLOR.rgb = vec3(dot(color.rgb, vec3(0.25, 0.25, 0.25)));
}