diff --git a/openVulkanoCpp/AR/ArFrame.hpp b/openVulkanoCpp/AR/ArFrame.hpp index 8909e8c..b0678ce 100644 --- a/openVulkanoCpp/AR/ArFrame.hpp +++ b/openVulkanoCpp/AR/ArFrame.hpp @@ -47,7 +47,7 @@ namespace OpenVulkano::AR [[nodiscard]] Math::Vector4uc Sample(float nx, float ny, bool asRgb = true) const { - return Sample(static_cast(nx * luminescenceOrColor.resolution.x), static_cast(nx * luminescenceOrColor.resolution.y), asRgb); + return Sample(static_cast(nx * luminescenceOrColor.resolution.x), static_cast(ny * luminescenceOrColor.resolution.y), asRgb); } [[nodiscard]] Math::Vector4uc Sample(uint32_t x, uint32_t y, bool asRgb = true) const