Add option to enable alpha blending

This commit is contained in:
2021-05-23 20:47:23 +02:00
parent 3ce9ce8e3b
commit e636b8eae5
4 changed files with 15 additions and 3 deletions

View File

@@ -132,6 +132,7 @@ namespace openVulkanoCpp::Scene
Topology topology = Topology::TRIANGLE_LIST;
CullMode cullMode = CullMode::BACK;
ICloseable* renderShader = nullptr;
bool alphaBlend = false; // TODO allow fine control over blending
Shader() = default;
~Shader() override { if (renderShader) Shader::Close(); }