UNITY_PROJ_COORD node version

Node-based Shader Editor
Post Reply
elettrozero
Posts: 15
Joined: Fri Jan 26, 2018 10:43 pm

UNITY_PROJ_COORD node version

Post by elettrozero »

Hi!

I should use the UNITY_PROJ_COORD function. What's the corrisponding node to use?

Thanks.
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: UNITY_PROJ_COORD node version

Post by Amplify_Borba »

Hello, you'll need to use the Custom Expression node in order to access functions or macros that are within .CGinc files, which is the case for the UNITY_PROJ_COORD(a) as it's present within the HLSLSupport.cginc.

Our templates and standard shaders already include the above library, so you won't need to add it through the 'Additional Includes' in your shader parameters, you should be able to access it through the node alone.

Here's an example on using the Custom Expression node to access a function held within a .cginc file.

Let me know if this helps!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
elettrozero
Posts: 15
Joined: Fri Jan 26, 2018 10:43 pm

Re: UNITY_PROJ_COORD node version

Post by elettrozero »

Thank you very much.
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: UNITY_PROJ_COORD node version

Post by Amplify_Borba »

Glad to be of assistance!

Have you had the chance to rate and review Amplify Shader Editor? It would be awesome if you could share your experience with the Unity community, every bit helps, your feedback is extremely valuable to us!

Feel free to get back in touch if you have further issues or questions, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
elettrozero
Posts: 15
Joined: Fri Jan 26, 2018 10:43 pm

Re: UNITY_PROJ_COORD node version

Post by elettrozero »

Amplify_Borba wrote:Glad to be of assistance!

Have you had the chance to rate and review Amplify Shader Editor? It would be awesome if you could share your experience with the Unity community, every bit helps, your feedback is extremely valuable to us!

Feel free to get back in touch if you have further issues or questions, thanks!
Done already quite some time ago ;)
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: UNITY_PROJ_COORD node version

Post by Amplify_Borba »

Awesome, thank you for your kindness!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply