Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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)));

This comment has been minimized.

Copy link
Owner Author

@jimmyjonezz jimmyjonezz commented May 4, 2020

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)));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment