完成mvp 矩阵,和shader

This commit is contained in:
xsl
2025-09-20 21:48:19 +08:00
parent ad8ce037fd
commit 1b201b8831
2 changed files with 42 additions and 15 deletions
@@ -84,8 +84,8 @@ public:
std::unique_ptr<vkb::core::BufferC> uniform_buffer_vs_point;
glm::vec3 camear_pos_point = {0, 0, -2.f};
glm::vec3 face_pos_point;
//glm::vec3 camear_pos_point = {0, 0, -2.f};
//glm::vec3 face_pos_point;
struct
{
@@ -139,7 +139,7 @@ public:
void update_uniform_buffers();
void prepare_uniform_buffers_point();
void update_uniform_buffers_point();
void update_uniform_buffers_point(float fov, float x, float y, float z, float sx, float sy, float sz, float rotx, float roty, float rotz, float camx, float camy, float camz);
void prepare_pipelines();
@@ -172,6 +172,7 @@ public:
//void start();
std::mutex mtx;
std::mutex mtx_point;
std::mutex mtx_mvp;
//void stop();
//void updateTexture();
};