Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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);
}
Source by godotengine.org #
 
PREVIOUS NEXT
Tagged: #godot #white #shader
ADD COMMENT
Topic
Name
8+3 =