fix grid bounds calculation issue with float framebuffer
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user