Skip to content

Commit

Permalink
Fixed displacement map binding
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Dec 27, 2023
1 parent 7a00847 commit 4ff9bed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion data/shaders/standard.vert
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@

#pragma import_defines (VSG_INSTANCE_POSITIONS, VSG_BILLBOARD, VSG_DISPLACEMENT_MAP)

#define VIEW_DESCRIPTOR_SET 0
#define MATERIAL_DESCRIPTOR_SET 1

layout(push_constant) uniform PushConstants {
mat4 projection;
mat4 modelView;
} pc;

#ifdef VSG_DISPLACEMENT_MAP
layout(binding = 6) uniform sampler2D displacementMap;
layout(set = MATERIAL_DESCRIPTOR_SET, binding = 6) uniform sampler2D displacementMap;
#endif

layout(location = 0) in vec3 vsg_Vertex;
Expand Down

0 comments on commit 4ff9bed

Please sign in to comment.