diff --git a/data/shaders/terraintessellation/skysphere.vert b/data/shaders/terraintessellation/skysphere.vert index e5bf123b..f9473a3e 100644 --- a/data/shaders/terraintessellation/skysphere.vert +++ b/data/shaders/terraintessellation/skysphere.vert @@ -1,6 +1,7 @@ #version 450 core layout (location = 0) in vec3 inPos; +layout (location = 1) in vec3 inNormal; layout (location = 2) in vec2 inUV; layout (location = 0) out vec2 outUV; diff --git a/data/shaders/terraintessellation/skysphere.vert.spv b/data/shaders/terraintessellation/skysphere.vert.spv index de16dbaf..5a5f1b03 100644 Binary files a/data/shaders/terraintessellation/skysphere.vert.spv and b/data/shaders/terraintessellation/skysphere.vert.spv differ diff --git a/terraintessellation/terraintessellation.cpp b/terraintessellation/terraintessellation.cpp index cead91c9..571c2453 100644 --- a/terraintessellation/terraintessellation.cpp +++ b/terraintessellation/terraintessellation.cpp @@ -176,6 +176,20 @@ public: if (deviceFeatures.pipelineStatisticsQuery) { enabledFeatures.pipelineStatisticsQuery = VK_TRUE; }; + // Enable anisotropic filtering if supported + if (deviceFeatures.samplerAnisotropy) { + enabledFeatures.samplerAnisotropy = VK_TRUE; + } + // Enable texture compression + if (deviceFeatures.textureCompressionBC) { + enabledFeatures.textureCompressionBC = VK_TRUE; + } + else if (deviceFeatures.textureCompressionASTC_LDR) { + enabledFeatures.textureCompressionASTC_LDR = VK_TRUE; + } + else if (deviceFeatures.textureCompressionETC2) { + enabledFeatures.textureCompressionETC2 = VK_TRUE; + } } // Setup pool and buffer for storing pipeline statistics results