Workbench: Fix broken id pass

This commit is contained in:
Clément Foucault 2020-08-05 19:35:34 +02:00
parent cf3431e0e8
commit 38e9a349de
Notes: blender-bot 2024-03-25 12:30:38 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
3 changed files with 3 additions and 3 deletions

View File

@ -90,5 +90,5 @@ void main()
packed_rough_metal = workbench_float_pair_encode(roughness, metallic);
#endif
object_id = int((uint(resource_id) + 1u) & 0xFFu);
object_id = int(uint(resource_handle) & 0xFFFFu) + 1;
}

View File

@ -34,5 +34,5 @@ void main()
packed_rough_metal = workbench_float_pair_encode(roughness, metallic);
#endif
object_id = int((uint(resource_id) + 1u) & 0xFFu);
object_id = int(uint(resource_handle) & 0xFFFFu) + 1;
}

View File

@ -36,5 +36,5 @@ void main()
packed_rough_metal = workbench_float_pair_encode(roughness, metallic);
#endif
object_id = int((uint(resource_id) + 1u) & 0xFFu);
object_id = int(uint(resource_handle) & 0xFFFFu) + 1;
}