Renamed mesh example to glTF scene

This commit is contained in:
Sascha Willems 2020-04-19 11:50:46 +02:00
parent 3ae053d005
commit e0c15f62da
12 changed files with 15 additions and 15 deletions

View file

@ -64,13 +64,13 @@ set(EXAMPLES
dynamicuniformbuffer
gears
geometryshader
gltfscene
hdr
imgui
indirectdraw
inlineuniformblocks
inputattachments
instancing
mesh
multisampling
multithreading
multiview

View file

@ -452,6 +452,7 @@ public:
VkClearValue clearValues[2];
clearValues[0].color = defaultClearColor;
clearValues[0].color = { { 0.25f, 0.25f, 0.25f, 1.0f } };;
clearValues[1].depthStencil = { 1.0f, 0 };
VkRenderPassBeginInfo renderPassBeginInfo = vks::initializers::renderPassBeginInfo();
@ -682,8 +683,8 @@ public:
vertexInputStateCI.pVertexAttributeDescriptions = vertexInputAttributes.data();
const std::array<VkPipelineShaderStageCreateInfo, 2> shaderStages = {
loadShader(getAssetPath() + "shaders/mesh/mesh.vert.spv", VK_SHADER_STAGE_VERTEX_BIT),
loadShader(getAssetPath() + "shaders/mesh/mesh.frag.spv", VK_SHADER_STAGE_FRAGMENT_BIT)
loadShader(getAssetPath() + "shaders/gltfscene/mesh.vert.spv", VK_SHADER_STAGE_VERTEX_BIT),
loadShader(getAssetPath() + "shaders/gltfscene/mesh.frag.spv", VK_SHADER_STAGE_FRAGMENT_BIT)
};
VkGraphicsPipelineCreateInfo pipelineCI = vks::initializers::pipelineCreateInfo(pipelineLayout, renderPass, 0);