aah yes, the brad effect...

i realized my shader was setup as a surface shader and not a texture shader.

s


On Wed, Nov 28, 2012 at 4:17 PM, Steven Caron <[email protected]> wrote:

> i am using the new shader definition api and i can't seem to create a
> shader with a RGBA output which will connect to a color to scalar node then
> to the displacement port.
>
> a spdl version is working fine but a shader plugin isn't...
>
>     Parameter "out" output
>     {
>         title = "output param";
>         guid = "{EFE4F4CC-FCE7-432B-B3ED-BF579A1CF9E1}";
>         type = color;
>         flags = 1;
>     }
>
>     # Output Parameter: out
>     paramOptions = XSIFactory.CreateShaderParamDefOptions()
>     paramOptions.SetLongName("out")
>     paramOptions.SetTexturable(True)
>
>     params = shaderDef.OutputParamDefs
>     paramDef = params.AddParamDef("out", C.siShaderDataTypeColor4,
> paramOptions)
>     paramDef.MainPort = True
>
> is there some flag i need to set to allow it to connect to displacement?
>
> s
>

Reply via email to