Lighting still looks horrible, but whatever for now
This commit is contained in:
@@ -50,8 +50,6 @@ MaterialInstance::~MaterialInstance()
|
||||
|
||||
void MaterialInstance::updateDescriptor()
|
||||
{
|
||||
if(!dirty)
|
||||
return;
|
||||
Gfx::PDescriptorLayout layout = baseMaterial->getMaterial()->getDescriptorLayout();
|
||||
descriptor = layout->allocateDescriptorSet();
|
||||
for (auto& param : parameters)
|
||||
|
||||
@@ -35,7 +35,6 @@ private:
|
||||
Gfx::PDescriptorSet descriptor;
|
||||
PMaterialAsset baseMaterial;
|
||||
uint64 id;
|
||||
bool dirty = true;
|
||||
};
|
||||
DEFINE_REF(MaterialInstance)
|
||||
} // namespace Seele
|
||||
Reference in New Issue
Block a user