Code cleanup, simplified descriptor setup
This commit is contained in:
parent
53bb3d63f0
commit
668b9c9b57
13 changed files with 102 additions and 195 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#version 450
|
||||
|
||||
layout (binding = 2) uniform sampler2D colorMap;
|
||||
layout (binding = 1) uniform sampler2D colorMap;
|
||||
|
||||
layout (location = 0) in vec3 inNormal;
|
||||
layout (location = 1) in vec2 inUV;
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
layout (binding = 0) uniform UBO
|
||||
{
|
||||
mat4 projection;
|
||||
mat4 modelview;
|
||||
vec4 lightPos;
|
||||
float tessAlpha;
|
||||
float tessStrength;
|
||||
float tessLevel;
|
||||
} ubo;
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,15 +1,16 @@
|
|||
#version 450
|
||||
|
||||
layout (binding = 1) uniform UBO
|
||||
layout (binding = 0) uniform UBO
|
||||
{
|
||||
mat4 projection;
|
||||
mat4 modelview;
|
||||
vec4 lightPos;
|
||||
float tessAlpha;
|
||||
float tessStrength;
|
||||
float tessLevel;
|
||||
} ubo;
|
||||
|
||||
layout (binding = 2) uniform sampler2D displacementMap;
|
||||
layout (binding = 1) uniform sampler2D displacementMap;
|
||||
|
||||
layout(triangles, equal_spacing, cw) in;
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue