20 #include "src/gl/basicshaderprogram.h" |
20 #include "src/gl/basicshaderprogram.h" |
21 #include "src/gl/common.h" |
21 #include "src/gl/common.h" |
22 |
22 |
23 class GridLayer final : public RenderLayer |
23 class GridLayer final : public RenderLayer |
24 { |
24 { |
25 BasicShader shader; |
25 gl::basic_shader shader; |
26 glm::vec4 gridColor = {1.0f, 1.0f, 1.0f, 0.75f}; |
26 glm::vec4 gridColor = {1.0f, 1.0f, 1.0f, 0.75f}; |
27 glm::mat4 gridMatrix{1}; |
27 glm::mat4 gridMatrix{1}; |
28 bool isInitialized = false; |
28 bool isInitialized = false; |
29 public: |
29 public: |
30 void setGridMatrix(const glm::mat4& newGridMatrix); |
30 void setGridMatrix(const glm::mat4& newGridMatrix); |