Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fractal2d node #2183

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ld-kerley
Copy link
Contributor

Mirroring the existing behavior for <fractal3d>, we add the corresponding <fractal2d> node that uses the texcoord` input as its manifold.

Add support for OSL, MSL, GLSL, MDL (note : MDL not tested).

Updated specification documents to add <fractal2d> to the specification and remove it from the proposals document.

Also remove period inputs for the noises that don't have those inputs in the specification. This is already documented in the proposals document.

Note : in the GLSL noise library code I renamed the existing mx_fractal_noise_xxx() functions to mx_fractal3d_noise_xxx() to make the differentiation cleaner with the new mx_fractal2d_noise_xxx(). But I retained wrapper functions with the old name that just call through to the new name for backwards compatibility. I was unsure how much custom customer code might be referencing those functions. We can remove the shim functions when we have another breaking API release.

@jstone-lucasfilm jstone-lucasfilm changed the title Add <fractal2d> node Add fractal2d node Jan 23, 2025
return float4(c.x, c.y, c.z, a);
}

// TODO - do we want to rename these to mx_fractal3D_noise_float - if so where else might things need to be updated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That rename sounds logical to me, and I'm CC'ing @krohmerNV for his thoughts from the MDL side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants