used newly Bind series function.

This commit is contained in:
2022-03-09 20:33:26 +08:00
parent edbecbb86d
commit 15e80cbc5a
14 changed files with 70 additions and 178 deletions

View File

@@ -71,16 +71,8 @@ private:
if(!ubo_sky_color)
return(false);
{
MaterialParameters *mp=material_instance->GetMP(DescriptorSetsType::Value);
if(!mp)return(false);
if(!mp->BindUBO("sky_color",ubo_sky_color))
return(false);
mp->Update();
}
if(!material_instance->BindUBO(DescriptorSetsType::Value,"sky_color",ubo_sky_color))
return(false);
return(true);
}