mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-29 15:29:26 -05:00
Make use of UniformCache in many Renderables and switch from setUniform(const std::string&, ...) to setUniform(GLint, ...) in those cases
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
#include <openspace/properties/scalar/boolproperty.h>
|
||||
#include <openspace/properties/scalar/floatproperty.h>
|
||||
|
||||
#include <ghoul/opengl/uniformcache.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace ghoul::opengl {
|
||||
@@ -72,6 +74,9 @@ private:
|
||||
properties::Mat3Property _modelTransform;
|
||||
|
||||
std::unique_ptr<ghoul::opengl::ProgramObject> _programObject;
|
||||
UniformCache(directionToSunViewSpace, modelViewTransform, projectionTransform,
|
||||
performShading, texture) _uniformCache;
|
||||
|
||||
std::unique_ptr<ghoul::opengl::Texture> _texture;
|
||||
|
||||
glm::dvec3 _sunPos;
|
||||
|
||||
Reference in New Issue
Block a user