Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #version 130
  2.  
  3. uniform float animationTime;
  4.  
  5. out vec4 fragColor;
  6.  
  7. void main()
  8. {
  9. //TODO 4
  10. // Animate the sphere color based on the animation time
  11. //use functions like the absolute value of sin and cos with, combined with animationTime
  12. //fragColor = vec4(0, 0, 1, 1);
  13. fragColor = vec4(abs(cos(animationTime)),abs(sin(animationTime)),abs(cos(animationTime)),1);
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement