2
0

Basic.frag 542 B

1234567891011121314151617181920
  1. // ----------------------------------------------------------------
  2. // From Game Programming in C++ by Sanjay Madhav
  3. // Copyright (C) 2017 Sanjay Madhav. All rights reserved.
  4. //
  5. // Released under the BSD License
  6. // See LICENSE in root directory for full details.
  7. // ----------------------------------------------------------------
  8. // Request GLSL 3.3
  9. #version 330
  10. // This corresponds to the output color
  11. // to the color buffer
  12. out vec4 outColor;
  13. void main()
  14. {
  15. // RGBA of 100% blue, 100% opaque
  16. outColor = vec4(0.0, 0.0, 1.0, 1.0);
  17. }