/**
 *
 * @param {LightRenderMetadata[]} nodes
 * @param {number} count
 */
export function compute_light_data_hash(nodes, count) {

    let hash = ~count;

    for (let i = 0; i < count; i++) {
        const datum = nodes[i];

        hash ^= 1 << datum.visible_index;
    }

    return hash& 0x7fffffff;
}
