spv.300layout.frag 272 B

1234567891011121314151617181920212223
  1. #version 310 es
  2. precision mediump float;
  3. in vec4 pos;
  4. in vec3 color;
  5. layout(location = 7) out vec3 c;
  6. layout(LocatioN = 3) out vec4 p[2];
  7. struct S {
  8. vec3 c;
  9. float f;
  10. };
  11. in S s;
  12. void main()
  13. {
  14. c = color + s.c;
  15. p[1] = pos * s.f;
  16. }