mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +00:00
[vulkan] Fix incorrect bsp sky constant ids
I guess I got things a little tangled when cleaning up my bindless attempt. Fixes black default skies.
This commit is contained in:
parent
4e229169ec
commit
1447d9297d
2 changed files with 5 additions and 5 deletions
|
@ -793,11 +793,11 @@
|
|||
specializationInfo = {
|
||||
mapEntries = (
|
||||
// doSkyBox
|
||||
{ size = 4; offset = 4; constantID = 0; },
|
||||
{ size = 4; offset = 0; constantID = 0; },
|
||||
// doSkySheet
|
||||
{ size = 4; offset = 0; constantID = 1; },
|
||||
{ size = 4; offset = 4; constantID = 1; },
|
||||
);
|
||||
data = "array(0, 1)";
|
||||
data = "array(1, 0)";
|
||||
};
|
||||
},
|
||||
);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
|
||||
layout (constant_id = 1) const bool doSkyBox = false;
|
||||
layout (constant_id = 2) const bool doSkySheet = false;
|
||||
layout (constant_id = 0) const bool doSkyBox = false;
|
||||
layout (constant_id = 1) const bool doSkySheet = false;
|
||||
|
||||
layout (set = 1, binding = 0) uniform sampler2DArray SkySheet;
|
||||
layout (set = 2, binding = 0) uniform samplerCube SkyBox;
|
||||
|
|
Loading…
Reference in a new issue