chunkAttributes.go 557 B

12345678910111213141516171819
  1. // Copyright 2016 The G3N Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package shader
  5. func init() {
  6. AddChunk("attributes", chunkAttributes)
  7. }
  8. const chunkAttributes = `
  9. // Vertex attributes
  10. in layout(location = 0) vec3 VertexPosition;
  11. in layout(location = 1) vec3 VertexNormal;
  12. in layout(location = 2) vec3 VertexColor;
  13. in layout(location = 3) vec2 VertexTexcoord;
  14. in layout(location = 4) float VertexDistance;
  15. in layout(location = 5) vec4 VertexTexoffsets;
  16. `