Best way to do triplanar projection on landscape master materials?

Blyxzen and @Frenetic (whichever may be available soonest that can answer this question):

Still in the same tutorial, timestamp 18:43. In the X Nan Check and Y Nan Check Custom functions, the code would be:

float3 X = float3(1.f, 0.f, 0.f);
return (dot(v, v) != 0.f) ? v : X;

and

float3 Y = float3(0.f, 1.f, 0.f);
return (dot(v, v) != 0.f) ? v : Y;

respectively, correct? I am not entirely sure on this but I think it’s right.

1 Like