Clean up Hash Functions
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
This commit is contained in:
parent
8e3d9a23aa
commit
141c375581
40 changed files with 391 additions and 236 deletions
|
|
@ -665,7 +665,7 @@ void LightmapGI::_plot_triangle_into_octree(GenProbesOctree *p_cell, float p_cel
|
|||
}
|
||||
}
|
||||
|
||||
void LightmapGI::_gen_new_positions_from_octree(const GenProbesOctree *p_cell, float p_cell_size, const Vector<Vector3> &probe_positions, LocalVector<Vector3> &new_probe_positions, HashMap<Vector3i, bool, Vector3iHash> &positions_used, const AABB &p_bounds) {
|
||||
void LightmapGI::_gen_new_positions_from_octree(const GenProbesOctree *p_cell, float p_cell_size, const Vector<Vector3> &probe_positions, LocalVector<Vector3> &new_probe_positions, HashMap<Vector3i, bool> &positions_used, const AABB &p_bounds) {
|
||||
for (int i = 0; i < 8; i++) {
|
||||
Vector3i pos = p_cell->offset;
|
||||
if (i & 1) {
|
||||
|
|
@ -934,7 +934,7 @@ LightmapGI::BakeError LightmapGI::bake(Node *p_from_node, String p_image_data_pa
|
|||
}
|
||||
|
||||
LocalVector<Vector3> new_probe_positions;
|
||||
HashMap<Vector3i, bool, Vector3iHash> positions_used;
|
||||
HashMap<Vector3i, bool> positions_used;
|
||||
for (uint32_t i = 0; i < 8; i++) { //insert bounding endpoints
|
||||
Vector3i pos;
|
||||
if (i & 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue