finished dynamic UBO for RenderList,,,but rendering breakout error.

This commit is contained in:
2021-06-22 21:33:47 +08:00
parent bbab22304d
commit c3e9015d95
16 changed files with 152 additions and 80 deletions

View File

@@ -29,7 +29,7 @@ private:
RenderList render_list;
Material * material =nullptr;
MaterialParameters * material_instance =nullptr;
MaterialInstance * material_instance =nullptr;
Renderable * ro_rectangle =nullptr;
Renderable * ro_circle =nullptr;
@@ -119,7 +119,7 @@ private:
cam.Refresh();
ubo_camera_info =CreateUBO("camera", sizeof(CameraInfo),&cam.info);
ubo_color_material =CreateUBO("color_material",sizeof(Vector4f),&color);
ubo_color_material =CreateUBO("color_material", sizeof(Vector4f),&color);
material_instance->Update();
return(true);