How can I access the current triangle being rendered index

Your feedback is very important to us. We are listening.
Post Reply
francois85
Posts: 32
Joined: Thu Oct 04, 2018 2:20 pm

How can I access the current triangle being rendered index

Post by francois85 »

Hello,

I’m wondering if there is a way or a away to extend one of the nodes to return the current triangle index being rendered on the surface shader template.

A kind of :
float4 frag (v2f i, uint pID : SV_PrimitiveID) : SV_Target

Thank you in advance I really appreciate all the replies
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: How can I access the current triangle being rendered ind

Post by Amplify_Borba »

Hello, this is possible to achieve, although its something that must be added on our side, so I've registered the request and passed it to our developer.

We will get back in touch as soon as we have any developments, thank you for understanding!
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!
francois85
Posts: 32
Joined: Thu Oct 04, 2018 2:20 pm

Re: How can I access the current triangle being rendered ind

Post by francois85 »

Awesome, thank you :)
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: How can I access the current triangle being rendered ind

Post by Amplify_Borba »

Hello, I'm getting back in touch to let you know that we've added a couple of new nodes in the latest ASE build, which you can access from our website.

New Nodes:
- Vertex Id
- Primitive ID

Please let us know if you have any further feedback or questions, thank you!
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!
francois85
Posts: 32
Joined: Thu Oct 04, 2018 2:20 pm

Re: How can I access the current triangle being rendered ind

Post by francois85 »

You guys are awesome thanks so much !!!
francois85
Posts: 32
Joined: Thu Oct 04, 2018 2:20 pm

Re: How can I access the current triangle being rendered ind

Post by francois85 »

You guys are awesome thanks so much !!
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: How can I access the current triangle being rendered ind

Post by Amplify_Borba »

We're happy to help, thank you for your ongoing support!
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