Advertisement
acampbellblack

Untitled

Jan 22nd, 2024
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 330 core
  2.  
  3. uniform sampler2D crate_texture;
  4. uniform sampler2D face_texture;
  5. uniform float mix_ratio;
  6.  
  7. in vec2 texture_coordinates;
  8.  
  9. out vec4 frag_colour;
  10.  
  11. void main()
  12. {
  13.     frag_colour = mix(texture(crate_texture, texture_coordinates), texture(face_texture, texture_coordinates), mix_ratio); // sample from the texture at the provided coordinates and multiply by colour
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement