55 glm::vec3 position; |
54 glm::vec3 position; |
56 glm::vec3 color; |
55 glm::vec3 color; |
57 }; |
56 }; |
58 } |
57 } |
59 |
58 |
60 static AxesVertex data[] = |
59 static const AxesVertex data[] = |
61 { |
60 { |
62 AxesVertex{{-10000, 0, 0}, {1, 0, 0}}, |
|
63 AxesVertex{{10000, 0, 0}, {1, 0, 0}}, |
61 AxesVertex{{10000, 0, 0}, {1, 0, 0}}, |
64 AxesVertex{{0, -10000, 0}, {0, 1, 0}}, |
62 AxesVertex{{0, 0, 0}, {1, 0, 0}}, |
|
63 AxesVertex{{-10000, 0, 0}, {0.5, 0, 0}}, |
|
64 AxesVertex{{0, 0, 0}, {0.5, 0, 0}}, |
65 AxesVertex{{0, 10000, 0}, {0, 1, 0}}, |
65 AxesVertex{{0, 10000, 0}, {0, 1, 0}}, |
66 AxesVertex{{0, 0, -10000}, {0, 0, 1}}, |
66 AxesVertex{{0, 0, 0}, {0, 1, 0}}, |
|
67 AxesVertex{{0, -10000, 0}, {0, 0.5, 0}}, |
|
68 AxesVertex{{0, 0, 0}, {0, 0.5, 0}}, |
67 AxesVertex{{0, 0, 10000}, {0, 0, 1}}, |
69 AxesVertex{{0, 0, 10000}, {0, 0, 1}}, |
|
70 AxesVertex{{0, 0, 0}, {0, 0, 1}}, |
|
71 AxesVertex{{0, 0, -10000}, {0, 0, 0.5}}, |
|
72 AxesVertex{{0, 0, 0}, {0, 0, 0.5}}, |
68 }; |
73 }; |
69 |
74 |
70 const char* AxesProgram::vertexShaderSource() const |
75 const char* AxesProgram::vertexShaderSource() const |
71 { |
76 { |
72 return ::vertexShaderSource; |
77 return ::vertexShaderSource; |