I have a very simple triplanar shader that paints the top of my cube green, and 2 of the sides brown. However, I cannot manage to get it to paint all 4 sides, only 2. How can I adjust this?
Add an ‘Abs’ to the output of the X/Z Side Projection Dot Product. Currently one side will be negative.
Thanks!
Wouldn’t that have the same effect as just removing the vector2 input and setting x & z to just “1” in the vector3, which results in only 2 sides being painted?
finally got to my comp, that does indeed solve it!
I was experimenting with making the mottom face of my cube a bit bigger than the rest, so that the edges arent 90 degrees. I scale up the bottom face by 1.2.
This is making my shader blend colors on the edges, so I have to pick a bright red to get close to brown. Is there any way I can fix this so that the green is for the top face only, and the brown is for the side faces only?
Nice work thus far! Along these lines, you may also be interested in the new surface-gradient implementation recently shared by Morten Mikkelsen, of Unity Labs.
