physics
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user