Jump to content
Sign in to follow this  
SvenP

Getting attributes or local variables into shaders

Recommended Posts

Ok hopefully a quite simple question :D

How can i access point attributes or local variables in a surface shader with VOPs ?

Thanks for the help

Sven

Share this post


Link to post
Share on other sites
Ok hopefully a quite simple question  :D

How can i access point attributes or local variables in a surface shader with VOPs ?

Use a parameter vop and name the parameter with the same name as the attribute

you wish to use.

that's it.

Luca

Share this post


Link to post
Share on other sites

Quite right!

Also, you may use the pragma "hidden" to hide the parameter from the UI forever.

#pragma hint  my_attribute  hidden

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×