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

@@ -37,7 +37,7 @@ private:
MaterialInstance * material_instance =nullptr;
RenderableInstance *render_instance =nullptr;
GPUBuffer * ubo_world_matrix =nullptr;
GPUBuffer * ubo_camera_matrix =nullptr;
GPUBuffer * ubo_color_material =nullptr;
GPUBuffer * ubo_line_config =nullptr;
@@ -88,7 +88,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);
ubo_line_config =CreateUBO("line2d_config", sizeof(Line2DConfig), &line_2d_config);
@@ -135,7 +135,7 @@ public:
cam.Refresh();
ubo_world_matrix->Write(&cam.matrix);
ubo_camera_matrix->Write(&cam.matrix);
BuildCommandBuffer(render_instance);
}