refactor export equirectangular

This commit is contained in:
2019-08-15 19:12:50 +02:00
parent e959fb4d91
commit 542e5a9c19
12 changed files with 223 additions and 206 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include "rtt.h"
#include "log.h"
#include "texture.h"
class LayerFrame
{
@@ -42,6 +43,8 @@ public:
bool create(int width, int height, std::string name);
void clear(const glm::vec4& c);
Snapshot snapshot(std::array<glm::vec4, 6>* dirty_box = nullptr, std::array<bool, 6>* dirty_face = nullptr);
TextureCube gen_cube();
Texture2D gen_equirect();
void restore(const Snapshot& snap);
void destroy();
void optimize();