1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-01 15:57:45 +00:00

Remove the hideous red and green colors in the mdlviewer viewport

This commit is contained in:
Joshua Goins 2022-04-12 09:55:48 -04:00
parent 93c6bf726a
commit d168592db9
3 changed files with 5 additions and 5 deletions

View file

@ -13,5 +13,5 @@ void main() {
float diff = max(dot(norm, lightDir), 0.0);
outColor = vec4(0.0, 1.0, 0.0, 1.0) * diff;
outColor = vec4(1.0) * diff;
}

Binary file not shown.

View file

@ -366,11 +366,11 @@ void Renderer::render(std::vector<RenderModel> models) {
renderPassInfo.renderPass = renderPass;
renderPassInfo.framebuffer = swapchainFramebuffers[imageIndex];
static float i = 0;
VkClearValue clearValue = {};
clearValue.color.float32[0] = sin(i);
i += 0.01;
clearValue.color.float32[3] = 1;
clearValue.color.float32[0] = 0.8;
clearValue.color.float32[1] = 0.8;
clearValue.color.float32[2] = 0.8;
clearValue.color.float32[3] = 1.0;
renderPassInfo.clearValueCount = 1;
renderPassInfo.pClearValues = &clearValue;