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

Support OSL code generated from image shaders in MaterialX 1.38.10 #2160

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AdrienHerubel
Copy link

This PR adds support for the OSL code generated for image shaders by MaterialX 1.38.10.

In MaterialX 1.38.8 the OSL shader generator will create struct texturesource parameters such as :

    textureresource  shader_file = {\"\", \"\"}
    [[
        string widget = \"filename\"
    ]],

In MaterialX 1.38.10 the shader generator will split the textureresource shader in two parameters :

    string shader_file = \"\"
    [[
        string widget = \"filename\"
    ]],
    string shader_file_colorspace = \"\"
    [[
        string widget = \"colorspace\"
    ]],

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.

1 participant