Advertisement
Guest User

Untitled

a guest
Jan 26th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. float4 mainImage(VertData v_in) : TARGET
  2. {
  3.     float4 color = image.Sample(textureSampler, v_in.uv);
  4.     float t = elapsed_time * speed;
  5.     float pi = 3.1415f;
  6.     return float4(color.r*sin(x)/2f+0.5f, color.g*sin(x - pi/2f)/2f+0.5f, color.b*sin(x - pi)/2f+0.5f);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement