[vulkan] Actually write the alias g-buffer commands

It seems to help for some reason.
This commit is contained in:
Bill Currie 2021-02-24 20:24:46 +09:00
parent 10a1b99a92
commit 6c1d6666b4
3 changed files with 6 additions and 8 deletions

View file

@ -177,12 +177,6 @@
},
{
binding = 1;
descriptorType = uniform_buffer;
descriptorCount = 1;
stageFlags = fragment;
},
{
binding = 2;
descriptorType = combined_image_sampler;
descriptorCount = 1;
stageFlags = fragment;

View file

@ -1,5 +1,5 @@
#version 450
layout (set = 0, binding = 2) uniform sampler2DArray Skin;
layout (set = 0, binding = 1) uniform sampler2DArray Skin;
layout (push_constant) uniform PushConstants {
layout (offset = 68)
@ -28,5 +28,5 @@ main (void)
c += texture (Skin, vec3 (st, 2)) * unpackUnorm4x8(colorB);
frag_color = c;
frag_normal = vec4(normal, 0);
frag_normal = vec4(normal, 1);
}

View file

@ -149,6 +149,10 @@ Vulkan_DrawAlias (entity_t *ent, vulkan_ctx_t *ctx)
0, vertex_constants, sizeof (vertex_constants),
fragment_constants, sizeof (fragment_constants),
hdr, ctx);
emit_commands (aframe->cmdSet.a[QFV_aliasGBuffer], ent->pose1, ent->pose2,
skin, vertex_constants, sizeof (vertex_constants),
fragment_constants, sizeof (fragment_constants),
hdr, ctx);
}
static void