Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yknishidate committed Oct 26, 2024
1 parent d956094 commit f317d37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/extensions/ray_queries/ray_queries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ void RayQueries::load_node(vkb::sg::Node &node)
{
if (node.has_component<vkb::sg::Mesh>())
{
auto &mesh = node.get_component<vkb::sg::Mesh>();
auto &transform_matrix = node.get_transform().get_world_matrix();
auto &normal_matrix = glm::transpose(glm::inverse(glm::mat3(transform_matrix)));
auto &mesh = node.get_component<vkb::sg::Mesh>();
glm::mat4 transform_matrix = node.get_transform().get_world_matrix();
glm::mat3 normal_matrix = glm::transpose(glm::inverse(glm::mat3(transform_matrix)));

for (auto &&sub_mesh : mesh.get_submeshes())
{
Expand Down

0 comments on commit f317d37

Please sign in to comment.