rename "ubo_camera_matrix" to "ubo_camera_info"
This commit is contained in:
@@ -35,7 +35,7 @@ private:
|
||||
Renderable * ro_circle =nullptr;
|
||||
Renderable * ro_round_rectangle =nullptr;
|
||||
|
||||
GPUBuffer * ubo_camera_matrix =nullptr;
|
||||
GPUBuffer * ubo_camera_info =nullptr;
|
||||
GPUBuffer * ubo_color_material =nullptr;
|
||||
|
||||
Pipeline * pipeline =nullptr;
|
||||
@@ -118,7 +118,7 @@ private:
|
||||
|
||||
cam.Refresh();
|
||||
|
||||
ubo_camera_matrix =CreateUBO("camera", sizeof(CameraInfo),&cam.matrix);
|
||||
ubo_camera_info =CreateUBO("camera", sizeof(CameraInfo),&cam.info);
|
||||
ubo_color_material =CreateUBO("color_material",sizeof(Vector4f),&color);
|
||||
|
||||
material_instance->Update();
|
||||
@@ -164,7 +164,7 @@ public:
|
||||
|
||||
cam.Refresh();
|
||||
|
||||
ubo_camera_matrix->Write(&cam.matrix);
|
||||
ubo_camera_info->Write(&cam.info);
|
||||
|
||||
BuildCommandBuffer(&render_list);
|
||||
}
|
||||
|
Reference in New Issue
Block a user