Update how camera data is communicated to shader

This commit is contained in:
2023-08-31 21:16:11 +02:00
parent 93c75763c7
commit df4194be51
21 changed files with 265 additions and 177 deletions

View File

@@ -2,13 +2,13 @@
layout (binding = 0) uniform sampler2D camTexture;
#ifdef ENABLE_DEPTH_WRITE
layout (binding = 1) uniform sampler2D depthMap;
layout (set = 1, binding = 0) uniform sampler2D depthMap;
#endif
layout (location = 0) in vec2 texCoords;
layout (location = 0) out vec4 fragColor;
layout(std140, push_constant) uniform CameraData
layout(set = 1, binding = 0) uniform CameraData
{
mat4 viewProjection;
mat4 view;