Any decent triplanar shader out there?

I want a somewhat decent triplanar shader to texture dynamic geometry without any UVs, but I can’t write any and all I’ve found aren’t too good on the performance side or don’t support normalmaps.

The BaseMaterial3D from where both the StandardMaterial3D and ORMMaterial3D extend has triplanar support in both of its uvs BaseMaterial3D.uv1_triplanar and BaseMaterial3D.uv2_triplanar

You can convert any Material to a ShaderMaterial in the inspector like this:

Do that after configuring a StandardMaterial3D triplanar properties and you’ll be able to see how it’s done there.