fix grid bounds calculation issue with float framebuffer

This commit is contained in:
2019-01-19 20:14:27 +01:00
parent 7980fd4c37
commit 9b5c0524f4
5 changed files with 50 additions and 25 deletions

View File

@@ -57,9 +57,10 @@ public:
NodeButton* m_commit;
HeightmapPlane m_hm_plane;
NodeHeightmapOverlay* m_hm_preview_nav;
Sphere m_sphere;
Plane m_plane;
Image m_hm_image;
Texture2D m_texture;
Sampler m_sampler_mipmap;
Sampler m_sampler_linear;
std::string m_file_path;
nanort::BVHAccel<float> m_rt_accel;
@@ -79,6 +80,6 @@ public:
float get_resolution() const;
float get_height() const;
float get_offset() const;
void draw_heightmap(const glm::mat4& proj, const glm::mat4& camera) const;
void draw_heightmap(const glm::mat4& proj, const glm::mat4& camera, bool commit) const;
void bake_uvs();
};