Skip to content
Discussion options

You must be logged in to vote

Hi @zichenwang01

The plugin pages (for BSDF) always have snippets of examples to initialize plugins from XML or Python dictionaries.

Here's what you want to be doing:

bsdf : mi.BSDF = mi.load_dict({
            'type': 'diffuse',
            'reflectance':  {
                'type': 'rgb',
                'value': [0.8, 0.2, 0.2]
                #'value': mi.ScalarColor3f(0.8, 0.2, 0.2) <- This is also valid
            }
        })

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by merlinND
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants