Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 130
- uniform float animationTime;
- out vec4 fragColor;
- void main()
- {
- //TODO 4
- // Animate the sphere color based on the animation time
- //use functions like the absolute value of sin and cos with, combined with animationTime
- //fragColor = vec4(0, 0, 1, 1);
- fragColor = vec4(abs(cos(animationTime)),abs(sin(animationTime)),abs(cos(animationTime)),1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement