Answers for "godot white shader"

1

godot white shader

shader_type canvas_item;

uniform float whitening;

void fragment() {
    vec4 texture_color = texture(TEXTURE, UV);
    COLOR = vec4(mix(texture_color.rgb, vec3(1,1,1), whitening), texture_color.a);
}
Posted by: Guest on April-28-2022

Python Answers by Framework

Browse Popular Code Answers by Language