Skip to content
Discussion options

You must be logged in to vote

Hi @Virtual-Optix,

These fields are initiated as Textures such that they can be spatially varying. For example, in the roughdielectric we could have a specific area of the shape which is rougher. The props.texture method has some extra logic so that it can create a uniform texture from the default value if the property is not already a Texture.
See here for some examples of plugin descriptions in Python. If you want to replicate the props.texture behaviour, you can just instantiate the Texture yourself using mi.load_dict/load_string.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Virtual-Optix
Comment options

@njroussel
Comment options

Answer selected by njroussel
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