updated few codes.but it can't run for the new material writer.

This commit is contained in:
2021-06-21 20:49:25 +08:00
parent 538b69cb45
commit 15a9c8cb38
6 changed files with 109 additions and 86 deletions

View File

@@ -72,11 +72,12 @@ private:
sampler=db->CreateSampler();
{
MaterialParameters *mp_texture=material_instance->GetMP(DescriptorSetsType::Value);
MaterialParameters *mp_texture=material_instance->GetMP(DescriptorSetsType::Material);
if(!mp_texture)
return(false);
if(!mp_texture->BindUBO("tex",ubo_camera_info))return(false);
if(!mp_texture->BindSampler("m_tex",texture,sampler))return(false);
mp_texture->Update();
}