Skip to content

Instantly share code, notes, and snippets.

@ChrisHinde
Last active August 21, 2023 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisHinde/2d35ebe5c3ea129f4310f00f335e1247 to your computer and use it in GitHub Desktop.
Save ChrisHinde/2d35ebe5c3ea129f4310f00f335e1247 to your computer and use it in GitHub Desktop.
Black and White Cell noise OSL
shader NoiseGrid(
point proj = point(u, v, 0) [[string label = "Projection"]],
float scale=20 [[string label = "Scale", float min=0.001, float max=1000, float sliderexponent=2]],
float utime=1 [[string label = "Time", float min=0.001, float max=1000, float sliderexponent=2]],
output color c = 0
)
{
c = cellnoise(proj * scale, utime);
c = color(c[0], c[0], c[0]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment