WheatleyHDD

whiteness shader

Oct 26th, 2025
1,198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. shader_type canvas_item;
  2.  
  3. uniform float whitening;
  4.  
  5. void fragment() {
  6.     vec4 texture_color = texture(TEXTURE, UV);
  7.     COLOR = vec4(mix(texture_color.rgb, vec3(1,1,1), whitening), texture_color.a);
  8. }
  9.  
Advertisement
Add Comment
Please, Sign In to add comment