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

@@ -42,7 +42,7 @@ private:
MaterialInstance * material_instance =nullptr;
Renderable * render_obj =nullptr;
RenderableInstance *render_instance =nullptr;
GPUBuffer * ubo_world_matrix =nullptr;
GPUBuffer * ubo_camera_matrix =nullptr;
Pipeline * pipeline =nullptr;
@@ -155,7 +155,7 @@ private:
sampler=db->CreateSampler();
material_instance->BindSampler("tex",tile_data->GetTexture(),sampler);
material_instance->BindUBO("world",ubo_world_matrix);
material_instance->BindUBO("camera",ubo_camera_matrix);
material_instance->Update();
return(true);
@@ -170,9 +170,9 @@ private:
cam.Refresh();
ubo_world_matrix=db->CreateUBO(sizeof(WorldMatrix),&cam.matrix);
ubo_camera_matrix=db->CreateUBO(sizeof(CameraMatrix),&cam.matrix);
if(!ubo_world_matrix)
if(!ubo_camera_matrix)
return(false);
return(true);
@@ -227,7 +227,7 @@ public:
cam.Refresh();
ubo_world_matrix->Write(&cam.matrix);
ubo_camera_matrix->Write(&cam.matrix);
BuildCommandBuffer(render_instance);
}