Page 1 of 1

UNITY_PROJ_COORD node version

PostPosted: Wed Nov 14, 2018 2:34 pm
by elettrozero
Hi!

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

Thanks.

Re: UNITY_PROJ_COORD node version

PostPosted: Wed Nov 14, 2018 3:22 pm
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!

Re: UNITY_PROJ_COORD node version

PostPosted: Sat Nov 17, 2018 7:39 am
by elettrozero
Thank you very much.

Re: UNITY_PROJ_COORD node version

PostPosted: Mon Nov 19, 2018 12:16 pm
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!

Re: UNITY_PROJ_COORD node version

PostPosted: Tue Nov 20, 2018 10:46 am
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 ;)

Re: UNITY_PROJ_COORD node version

PostPosted: Wed Nov 21, 2018 10:50 am
by Amplify_Borba
Awesome, thank you for your kindness!