Advertisement
DEKTEN

FRAGBED_002.ERROR_CAUSER.FRAG

Nov 16th, 2020
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 330 core  
  2. //:SHADERTOY_COMPATIBILITY:----------------------------------://
  3.  
  4.     #define fragCoord gl_FragCoord  
  5.     #define fragColor FragColor
  6.     uniform vec3  iResolution;    
  7.     uniform float iTime      ;    
  8.     uniform vec4  iMouse     ;    
  9.  
  10.     in  vec2   fag_tec;                        
  11.     out vec4 FragColor;  
  12.  
  13. //:----------------------------------:SHADERTOY_COMPATIBILITY://                
  14. void main()                            
  15. {                                      
  16.     //:vec2 u_v = fragCoord.xy / iResolution.xy;
  17.     vec2 u_v = (fragCoord.xy-(.5*iResolution.xy))/iResolution.y;
  18.     vec3 col = 0.5 + 0.5 * cos(iTime+u_v.xyx+vec3(0,2,5));
  19.     fragColor = vec4(col,1.0);
  20.  
  21. } //:main://                                          
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement