renamed the name from "WorldMatrix" to "CameraMatrix"

This commit is contained in:
2021-01-25 12:03:17 +08:00
parent 15f475fba1
commit ee35354d43
22 changed files with 70 additions and 70 deletions

View File

@@ -35,7 +35,7 @@ private:
Renderable * ro_circle =nullptr;
Renderable * ro_round_rectangle =nullptr;
GPUBuffer * ubo_world_matrix =nullptr;
GPUBuffer * ubo_camera_matrix =nullptr;
GPUBuffer * ubo_color_material =nullptr;
Pipeline * pipeline =nullptr;
@@ -118,7 +118,7 @@ private:
cam.Refresh();
ubo_world_matrix =CreateUBO("world", sizeof(WorldMatrix),&cam.matrix);
ubo_camera_matrix =CreateUBO("camera", sizeof(CameraMatrix),&cam.matrix);
ubo_color_material =CreateUBO("color_material",sizeof(Vector4f),&color);
material_instance->Update();
@@ -164,7 +164,7 @@ public:
cam.Refresh();
ubo_world_matrix->Write(&cam.matrix);
ubo_camera_matrix->Write(&cam.matrix);
BuildCommandBuffer(&render_list);
}