Skip to content
Snippets Groups Projects
Verified Commit 17dc802c authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Adjust unused descriptor set binding

parent 835b5897
No related branches found
No related tags found
No related merge requests found
......@@ -11,19 +11,6 @@ layout(set=0, binding=0) uniform matrixBuffer {
mat4 projectionMatrix;
};
struct Light {
vec4 pos; // pos.w = 0 (dir light), pos.w = 1 (point light)
vec3 col;
float spot_exponent;
vec3 spot_direction;
float spot_cutoff; // no spotlight if cutoff = 0
};
layout(set=0, binding=2) uniform lightBuffer {
Light light;
vec3 lightAmbient;
};
layout(location = 0) out vec3 passPosition;
layout(location = 1) out vec3 passNormal;
layout(location = 2) out vec3 passTangent;
......
......@@ -109,12 +109,10 @@ int main(int argc, const char** argv) {
vkcv::createVertexBindings(normalMappingShaderProgram.getVertexAttachments())
};
vkcv::DescriptorBindings descriptorBindings0 = (
const vkcv::DescriptorBindings descriptorBindings0 = (
phongShaderProgram.getReflectedDescriptors().at(0)
);
descriptorBindings0.at(2).shaderStages |= vkcv::ShaderStage::VERTEX;
auto descriptorSetLayout0 = core.createDescriptorSetLayout(descriptorBindings0);
auto descriptorSet0 = core.createDescriptorSet(descriptorSetLayout0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment