diff --git a/data/shaders/offscreen/mirror.frag.spv b/data/shaders/offscreen/mirror.frag.spv index c75e397f..abfc8dd8 100644 Binary files a/data/shaders/offscreen/mirror.frag.spv and b/data/shaders/offscreen/mirror.frag.spv differ diff --git a/data/shaders/offscreen/mirror.vert b/data/shaders/offscreen/mirror.vert index 4a29e9cf..1b56747f 100644 --- a/data/shaders/offscreen/mirror.vert +++ b/data/shaders/offscreen/mirror.vert @@ -12,11 +12,6 @@ layout (binding = 0) uniform UBO layout (location = 0) out vec2 outUV; layout (location = 1) out vec4 outPos; -out gl_PerVertex -{ - vec4 gl_Position; -}; - void main() { outUV = inUV; diff --git a/data/shaders/offscreen/mirror.vert.spv b/data/shaders/offscreen/mirror.vert.spv index 49f2eab6..c31c40a1 100644 Binary files a/data/shaders/offscreen/mirror.vert.spv and b/data/shaders/offscreen/mirror.vert.spv differ diff --git a/data/shaders/offscreen/phong.frag.spv b/data/shaders/offscreen/phong.frag.spv index 672e1f82..71c4b9fb 100644 Binary files a/data/shaders/offscreen/phong.frag.spv and b/data/shaders/offscreen/phong.frag.spv differ diff --git a/data/shaders/offscreen/phong.vert b/data/shaders/offscreen/phong.vert index 9e7c295b..27af1bd1 100644 --- a/data/shaders/offscreen/phong.vert +++ b/data/shaders/offscreen/phong.vert @@ -16,12 +16,6 @@ layout (location = 1) out vec3 outColor; layout (location = 2) out vec3 outEyePos; layout (location = 3) out vec3 outLightVec; -out gl_PerVertex -{ - vec4 gl_Position; - float gl_ClipDistance[]; -}; - void main() { outNormal = inNormal; diff --git a/data/shaders/offscreen/phong.vert.spv b/data/shaders/offscreen/phong.vert.spv index 44f4971a..615aa777 100644 Binary files a/data/shaders/offscreen/phong.vert.spv and b/data/shaders/offscreen/phong.vert.spv differ diff --git a/data/shaders/offscreen/quad.frag.spv b/data/shaders/offscreen/quad.frag.spv index 38044a2e..401a7434 100644 Binary files a/data/shaders/offscreen/quad.frag.spv and b/data/shaders/offscreen/quad.frag.spv differ diff --git a/data/shaders/offscreen/quad.vert b/data/shaders/offscreen/quad.vert index 75486072..1418d5c5 100644 --- a/data/shaders/offscreen/quad.vert +++ b/data/shaders/offscreen/quad.vert @@ -11,11 +11,6 @@ layout (binding = 0) uniform UBO layout (location = 0) out vec2 outUV; -out gl_PerVertex -{ - vec4 gl_Position; -}; - void main() { outUV = inUV; diff --git a/data/shaders/offscreen/quad.vert.spv b/data/shaders/offscreen/quad.vert.spv index dbaf4b66..0872996a 100644 Binary files a/data/shaders/offscreen/quad.vert.spv and b/data/shaders/offscreen/quad.vert.spv differ diff --git a/examples/offscreen/offscreen.cpp b/examples/offscreen/offscreen.cpp index f2cf95a2..1f6b6830 100644 --- a/examples/offscreen/offscreen.cpp +++ b/examples/offscreen/offscreen.cpp @@ -115,6 +115,8 @@ public: timerSpeed *= 0.25f; title = "Offscreen rendering"; settings.overlay = true; + // The scene shader uses a clipping plane, so this feature has to be enabled + enabledFeatures.shaderClipDistance = VK_TRUE; } ~VulkanExample()