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:
parent
93c6bf726a
commit
d168592db9
3 changed files with 5 additions and 5 deletions
|
@ -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.
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue