hashBarycentric
Computes a barycentric coordinate vector derived from hashing operations.
This function generates a barycentric coordinate for a point within a triangle by utilizing hash-based techniques to ensure uniform randomization. The result is expressed as a 3D vector where the components represent the barycentric weights.
Return
A Vector3
instance containing the computed barycentric coordinates.
Parameters
seed
An integer seed used for the hash function to ensure reproducibility.
x
An integer value that contributes to the hash-based computation.