INNER CODE UNIT · C++

meshlet_aabb_extent

oxylusengine/Oxylus · ResourceCompiler/private/ModelCompiler.cpp:433

      auto meshlet_aabb_extent = meshlet_bb_max - meshlet_bb_min;

      meshlet.indirect_vertex_index_offset = raw_meshlet.vertex_offset;
      meshlet.local_triangle_index_offset = raw_meshlet.triangle_offset;
      meshlet.vertex_count = raw_meshlet.vertex_count;
      meshlet.triangle_count = raw_meshlet.triangle_count;

      bounds.aabb_center.x = meshopt_quantizeHalf(meshlet_aabb_center.x);
      bounds.aabb_center.y = meshopt_quantizeHalf(meshlet_aabb_center.y);
      bounds.aabb_center.z = meshopt_quantizeHalf(meshlet_aabb_center.z);

      bounds.aabb_extent.x = meshopt_quantizeHalf(meshlet_aabb_extent.x);
      bounds.aabb_extent.y = meshopt_quantizeHalf(meshlet_aabb_extent.y);
      bounds.aabb_extent.z = meshopt_quantizeHalf(meshlet_aabb_extent.z);

      bounds.cone_axis_xy = {meshlet_bounds.cone_axis_s8[0], meshlet_bounds.cone_axis_s8[1]};
      bounds.cone_axis_z = meshlet_bounds.cone_axis_s8[2];
      bounds.cone_cutoff = meshlet_bounds.cone_cutoff_s8;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…