This commit is contained in:
2025-05-26 17:44:50 +03:00
parent 7f054e2904
commit 60fa98e240
24 changed files with 756 additions and 111 deletions

View File

@@ -168,6 +168,7 @@ void IBrushRenderer::Frame( float fDelta )
glm_perspective(glm_rad(90),(float)g_nWindowWidth/g_nWindowHeight, 0.01, 100, g_brushProject->projection);
glm_rotate(g_brushProject->projection, glm_rad(90), (vec4){1,0,0,0});
glm_scale(g_brushProject->projection, (vec4){1,-1,1,1});
glm_rotate(g_brushProject->projection, glm_rad(-90), (vec4){0,0,1,0});
if (g_bConfigNotify)
{
meshdepth.Destroy();
@@ -199,7 +200,7 @@ void IBrushRenderer::Frame( float fDelta )
{
CTexture *texture = (CTexture*)t;
VkDescriptorImageInfo image = {};
image.imageLayout = VK_IMAGE_LAYOUT_GENERAL;
image.imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
image.imageView = texture->image.m_imageView;
image.sampler = g_brushSampler;
textures.AppendTail(image);