Minor improvements

This commit is contained in:
SirLynix
2023-03-17 19:24:33 +01:00
parent 630428dc31
commit 506d3939a8
4 changed files with 73 additions and 73 deletions

View File

@@ -104,14 +104,11 @@ int main()
std::shared_ptr<Nz::MaterialInstance> colliderMat = Nz::Graphics::Instance()->GetDefaultMaterials().basicMaterial->Instantiate();
colliderMat->SetValueProperty("BaseColor", Nz::Color::Green());
for (std::string_view passName : { "DepthPass", "ForwardPass" })
colliderMat->UpdatePassesStates([](Nz::RenderStates& states)
{
colliderMat->UpdatePassStates(passName, [](Nz::RenderStates& states)
{
states.primitiveMode = Nz::PrimitiveMode::LineList;
return true;
});
}
states.primitiveMode = Nz::PrimitiveMode::LineList;
return true;
});
std::shared_ptr<Nz::Model> colliderModel;
{