mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-23 14:06:50 +01:00
11 lines
230 B
Plaintext
11 lines
230 B
Plaintext
|
shader_type canvas_item;
|
||
|
|
||
|
uniform vec4 base : hint_color;
|
||
|
|
||
|
void fragment() {
|
||
|
vec3 c = textureLod(SCREEN_TEXTURE, SCREEN_UV, 0.0).rgb;
|
||
|
float v = dot(c, vec3(0.33333, 0.33333, 0.33333));
|
||
|
v = sqrt(v);
|
||
|
COLOR.rgb = base.rgb * v;
|
||
|
}
|