Im wondering if someone can help me with the Custom Expression Node. Im not sure why it is not working. Basically Im trying to use it to blend 3 textures together inside a given triangle.
Im my example I broke it down the the smallest components possible.I pass the 3 points of my triangle (a,b,c) and p (vertex position node). I calculate the barycentric coordinates(u, v, w). Then I check if p is inside my triangle by making sure the sum of u+v+w is <=1 (image has typo of * but I use +). If true I return the desired blend weigh (u,v,w) to a Weighted Blend node and a texture index to my texture array.
Im not seeing any affect, I would expect my triangle to have a different color than the surrounding triangles and have a gradient blend.
Please help I not sure if the Nodes are used correctly
Screen Shot 2018-10-15 at 7.39.25 AM.png (123.47 KiB) Viewed 363 times
Screen Shot 2018-10-15 at 7.35.34 AM.png (212.02 KiB) Viewed 363 times
Screen Shot 2018-10-15 at 7.18.49 AM.png (211.6 KiB) Viewed 363 times
Ive narrowed it down to the Custom Expression Node. Either its a bug or I have it setup wrong. In the setup below I try and return a float3 to the summed blend node weight and it renders black but when I connect the same values through a vector it works. Im I doing something wrong in the expression?
Screen Shot 2018-10-16 at 12.19.58 AM.png (181.13 KiB) Viewed 329 times
Screen Shot 2018-10-16 at 12.12.23 AM.png (253.2 KiB) Viewed 330 times
No problem, happy to know you're having a good time with ASE!
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 and your feedback is extremely valuable to us!
Feel free to get back in touch if you have further issues or questions, thanks!