-
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.
Enhance Worley noise with solid cells option (#2119)
Adds a new control to `worley2d` and `worley3d`, which allows artists to choose between a distance for each cell (the default) and solid values for each cell. This allows for more patterns to be expressed in materials (i.e. flakes).
- Loading branch information
Showing
9 changed files
with
126 additions
and
47 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
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,6 +1,6 @@ | ||
#include "lib/mx_noise.glsl" | ||
|
||
void mx_worleynoise2d_float(vec2 texcoord, float jitter, out float result) | ||
void mx_worleynoise2d_float(vec2 texcoord, float jitter, int style, out 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,6 +1,6 @@ | ||
#include "lib/mx_noise.glsl" | ||
|
||
void mx_worleynoise2d_vector2(vec2 texcoord, float jitter, out vec2 result) | ||
void mx_worleynoise2d_vector2(vec2 texcoord, float jitter, int style, out vec2 result) | ||
{ | ||
result = mx_worley_noise_vec2(texcoord, jitter, 0); | ||
result = mx_worley_noise_vec2(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,6 +1,6 @@ | ||
#include "lib/mx_noise.glsl" | ||
|
||
void mx_worleynoise2d_vector3(vec2 texcoord, float jitter, out vec3 result) | ||
void mx_worleynoise2d_vector3(vec2 texcoord, float jitter, int style, out vec3 result) | ||
{ | ||
result = mx_worley_noise_vec3(texcoord, jitter, 0); | ||
result = mx_worley_noise_vec3(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,6 +1,6 @@ | ||
#include "lib/mx_noise.glsl" | ||
|
||
void mx_worleynoise3d_float(vec3 position, float jitter, out float result) | ||
void mx_worleynoise3d_float(vec3 position, float jitter, int style, out 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,6 +1,6 @@ | ||
#include "lib/mx_noise.glsl" | ||
|
||
void mx_worleynoise3d_vector2(vec3 position, float jitter, out vec2 result) | ||
void mx_worleynoise3d_vector2(vec3 position, float jitter, int style, out vec2 result) | ||
{ | ||
result = mx_worley_noise_vec2(position, jitter, 0); | ||
result = mx_worley_noise_vec2(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,6 +1,6 @@ | ||
#include "lib/mx_noise.glsl" | ||
|
||
void mx_worleynoise3d_vector3(vec3 position, float jitter, out vec3 result) | ||
void mx_worleynoise3d_vector3(vec3 position, float jitter, int style, out vec3 result) | ||
{ | ||
result = mx_worley_noise_vec3(position, jitter, 0); | ||
result = mx_worley_noise_vec3(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