-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update OSL Worley noise implementation (#2155)
#2119 added a new `style` parameter to Worley noise - this PR adds corresponding support to the OSL backend - mirroring behavior from the GLSL code generator.
- Loading branch information
Showing
7 changed files
with
195 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
void mx_worleynoise2d_float(vector2 texcoord, float jitter, int style, output float result) | ||
{ | ||
result = mx_worley_noise_float(texcoord, jitter, 0); | ||
result = mx_worley_noise_float(texcoord, jitter, style, 0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
void mx_worleynoise2d_vector2(vector2 texcoord, float jitter, int style, output vector2 result) | ||
{ | ||
result = mx_worley_noise_vector2(texcoord, jitter, 0); | ||
result = mx_worley_noise_vector2(texcoord, jitter, style, 0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
void mx_worleynoise2d_vector3(vector2 texcoord, float jitter, int style, output vector result) | ||
{ | ||
result = mx_worley_noise_vector3(texcoord, jitter, 0); | ||
result = mx_worley_noise_vector3(texcoord, jitter, style, 0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
void mx_worleynoise3d_float(vector position, float jitter, int style, output float result) | ||
{ | ||
result = mx_worley_noise_float(position, jitter, 0); | ||
result = mx_worley_noise_float(position, jitter, style, 0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
void mx_worleynoise3d_vector2(vector position, float jitter, int style, output vector2 result) | ||
{ | ||
result = mx_worley_noise_vector2(position, jitter, 0); | ||
result = mx_worley_noise_vector2(position, jitter, style, 0); | ||
} |
Oops, something went wrong.