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. layout(location = 0) in vec3 VertexPosition;
  11. layout(location = 1) in vec3 VertexNormal;
  12. layout(location = 2) in vec3 VertexColor;
  13. layout(location = 3) in vec2 VertexTexcoord;
  14. layout(location = 4) in float VertexDistance;
  15. layout(location = 5) in vec4 VertexTexoffsets;
  16. `