diff --git a/src/strategy/dual_layer_reprojection.cpp b/src/strategy/dual_layer_reprojection.cpp index 52f042e1540e704312d267a914cc0c4b5c91918b..040a2d4899c90b47a5c074ea685f0abef1a1f266 100644 --- a/src/strategy/dual_layer_reprojection.cpp +++ b/src/strategy/dual_layer_reprojection.cpp @@ -146,9 +146,10 @@ bool DualLayerReprojection::on_render(VkCommandBuffer command_buffer, lava::inde DualLayerReprojectionMetadata metadata; metadata.projection_matrix = this->get_stereo_transform()->get_projection_matrix(EYE_RIGHT); metadata.head_eye_projection_matrix = this->get_stereo_transform()->get_view_eye_projection_matrix(EYE_RIGHT); + metadata.layer_resolution = this->get_headset()->get_framebuffer_resolution(); + metadata.layer_separation = this->layer_constant_threshold; metadata.slope_threshold = this->reproject_slope_threshold; - metadata.render_resolution = this->get_headset()->get_framebuffer_resolution(); - + this->get_headset()->submit_metadata(std::span<uint8_t>((uint8_t*)&metadata, sizeof(metadata))); ShadowCache::Ptr shadow_cache = this->get_application()->get_shadow_cache(); diff --git a/src/strategy/dual_layer_reprojection.hpp b/src/strategy/dual_layer_reprojection.hpp index 0f163bfe9a2c9ef40c560c7feb983252578bb4c3..b1d224c49bd2346b6d389e8b2ae41ad59c1661b1 100644 --- a/src/strategy/dual_layer_reprojection.hpp +++ b/src/strategy/dual_layer_reprojection.hpp @@ -13,7 +13,8 @@ struct DualLayerReprojectionMetadata { glm::mat4 projection_matrix; glm::mat4 head_eye_projection_matrix; - glm::uvec2 render_resolution; + glm::uvec2 layer_resolution; + float layer_separation; float slope_threshold; };