Denisdude

Default fragment shader

Sep 10th, 2021 (edited)
857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. precision mediump float;
  2.  
  3. //uniform vec4 gl_FragCoord;
  4. uniform vec2 u_resolution;  // screen size (px) {width, height}
  5. uniform vec2 u_mouse;       // mouse cursor position (px) {x, y}
  6. uniform float u_time;       // time in milliseconds since the beginning
  7. uniform float u_deltaTime;  // time in milliseconds since the last frame
  8.  
  9. varying vec2 vUV;
  10.  
  11. void main() {
  12.     gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
  13. }
  14.  
Add Comment
Please, Sign In to add comment