Hi,

Is it possible to add attributes other than the predefined ones to a VArray
passed through the vertex shader, and have the vertex_shader interpolate
them?

So far, if I want to pass some arbitrary info onto the fragment_shader, I've
just been forcing it into any of the predefined slots (PW, PL, N...) that I
don't need in the fragment shader.
But I was wondering if it's possible to add new attributes.

I notice AttribContext has a "copy_to_channels" method that sounds like I
could use for this, but I'm not sure how to go about creating a new
AttribContext, and filling it with my data.

In any case, would that be the best approach to append arbitrary data to a
Varray? Can anyone share any pointers/examples/help?

Many thanks,
Ivan
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to