renamed the name from "WorldMatrix" to "CameraMatrix"
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user