Cleaned up shader code

This commit is contained in:
Ylva Selling
2021-09-06 09:07:26 +02:00
parent c63ee2d417
commit 7be40f3bc8
3 changed files with 84 additions and 59 deletions
@@ -63,9 +63,11 @@ namespace openspace {
properties::Vec2Property _targetDimensions;
properties::FloatProperty _showCrosshairThreshold;
properties::FloatProperty _showRectangleThreshold;
std::unique_ptr<ghoul::opengl::Texture> _texture;
UniformCache(modelTransform, viewProj, texture, showCrosshair, showCrosshairInTarget, borderWidth, targetDimensions, borderColor) _uniformCache;
UniformCache(modelTransform, viewProj, texture, showCrosshair, showRectangle, borderWidth, targetDimensions, borderColor) _uniformCache;
GLuint _vertexArray = 0;
GLuint _vertexBuffer = 0;
float _fieldOfView = 100.f;