Jump to content

Switch Shop And Shader Sop Confusion


Recommended Posts

Hello,

I'm trying to understand how to use the Switch SHOPs as well as Shader SOP for different renderers. I'm pretty lost here.

For the Switch SHOP, I can have different shaders wired in and based on the renderpass variable it will choose the right one? So I take it I have to have a pre-render script to setenv RENDERPASS a value correct? Is this the practical workflow?

Taking this a bit further, the Shader SOP has an option for renderers. I tried setting a vex super material for Mantra, and vex constant for OpenGL. I did this all in 1 shader sop. As you can guess this doesn't work. So I appended another Shader SOP to the chain.

Shader Sop1 has the renderer set to mantra with a vex super material (yellow color).

Shader Sop2 has the renderer set to opengl with a vex constant (blue color) material.

If I render with mantra I see the vex super material.

If I render with the opengl rop, I see the vex super material?

So in this case, I think my workflow is wrong....

Any clarification you could offer would be appreciated.

I attached a simple hip file with my setup in regards to the Shader Sop.

Cheers

ShaderSOP_aa.hip.gz

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...