diff --git a/libs/video/renderer/vulkan/qfpipeline.plist b/libs/video/renderer/vulkan/qfpipeline.plist index d503ac144..40a28a89a 100644 --- a/libs/video/renderer/vulkan/qfpipeline.plist +++ b/libs/video/renderer/vulkan/qfpipeline.plist @@ -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)"; }; }, ); diff --git a/libs/video/renderer/vulkan/shader/bsp_sky.frag b/libs/video/renderer/vulkan/shader/bsp_sky.frag index 25ccf9ba0..357d5d55b 100644 --- a/libs/video/renderer/vulkan/shader/bsp_sky.frag +++ b/libs/video/renderer/vulkan/shader/bsp_sky.frag @@ -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;