Added support for shader structures.

This commit is contained in:
2023-12-12 11:28:54 -06:00
parent 0fa08a1c92
commit debe4146eb
10 changed files with 268 additions and 80 deletions

View File

@ -34,11 +34,10 @@ std::vector<std::shared_ptr<IRenderPass>> UICanvas::getPasses(
.view = ctx.camera->getItem()->getWorldTransform(),
.model = selfTransform
};
data.colors[0] = COLOR_WHITE;
data.colors[1] = COLOR_RED;
data.colors[2] = COLOR_GREEN;
data.colors[3] = COLOR_BLUE;
data.test.first = COLOR_RED;
data.test.random = glm::vec3(0, 1, 0);
data.test.second = COLOR_BLUE;
auto pass = createRenderPass<UIShader, UIShaderData>(
std::ref(*this),