optimization for projections

This commit is contained in:
Michal Marcinkowski
2015-05-05 20:19:19 -04:00
parent f6d382f9f9
commit 665d832454
5 changed files with 61 additions and 30 deletions

View File

@@ -53,6 +53,7 @@ namespace planetgeometryprojection {
class PlanetGeometryProjection;
}
class RenderablePlanetProjection : public Renderable {
public:
RenderablePlanetProjection(const ghoul::Dictionary& dictionary);
@@ -74,6 +75,9 @@ protected:
glm::mat4 computeProjectorMatrix(const glm::vec3 loc, glm::dvec3 aim, const glm::vec3 up);
void attitudeParameters(double time);
void textureBind();
void project();
private:
void imageProjectGPU();
@@ -90,6 +94,7 @@ private:
ghoul::opengl::Texture* _texture;
ghoul::opengl::Texture* _textureOriginal;
ghoul::opengl::Texture* _textureProj;
ghoul::opengl::Texture* _textureWhiteSquare;
planetgeometryprojection::PlanetGeometryProjection* _geometry;
glm::vec2 _camScaling;