Skip to content

Commit

Permalink
fixup! Removed IndirectDrawCommands template parameter (as can be con…
Browse files Browse the repository at this point in the history
…figured in runtime) and make createIndirectDrawCommandBuffers more generic (detached AssetPrimitiveInfo from it).
  • Loading branch information
stripe2933 committed Feb 1, 2025
1 parent a110c4c commit c2c31fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/vulkan/Frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ auto vk_gltf_viewer::vulkan::Frame::update(const ExecutionTask &task) -> UpdateR

const glm::mat4 nodeWorldTransform = glm::make_mat4(task.gltf->nodeWorldTransforms[nodeIndex].data());
const glm::vec3 transformedMin { nodeWorldTransform * glm::vec4 { glm::make_vec3(positionMinData), 1.f } };
const glm::vec3 transformedMax { nodeWorldTransform * glm::vec4 { glm::make_vec3(positionMinData), 1.f } };
const glm::vec3 transformedMax { nodeWorldTransform * glm::vec4 { glm::make_vec3(positionMaxData), 1.f } };

const glm::vec3 halfDisplacement = (transformedMax - transformedMin) / 2.f;
const glm::vec3 center = transformedMin + halfDisplacement;
Expand Down

0 comments on commit c2c31fd

Please sign in to comment.