Skip to content

Commit 0be209e

Browse files
authored
Align OSL implementation of cellnoise3d with GLSL (#2906)
Prior to this fix cellnoise3d looked different for OSL as compared to Metal/GLSL. After this fix they match.
1 parent acbd32c commit 0be209e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
void mx_cellnoise3d_float(vector position, output float result)
22
{
3-
result = cellnoise(position);
3+
// Use the explicit point overload for deterministic 3D cell lookup.
4+
// Avoid relying on implicit vector conversion in the OSL builtin.
5+
result = cellnoise(point(position));
46
}

0 commit comments

Comments
 (0)