셰이더 레벨 일관 NaN 가드
ChosenPros
- Safe regardless of inputs; one fix applies broadly
Cons
- Some functions add a branch / extra ops

Defended against NaN propagation from zero vectors / zero values in normalize / rcp / atan2 with a consistent pattern — blocking the mobile black-screen issue
Pros
Cons
Pros
Cons
Why 셰이더 레벨 일관 NaN 가드: Shader inputs come from many paths — materials, VFX, runtime — and external validation alone cannot defend against all of them. The fundamental fix is making the shader itself behave safely under zero inputs.
1e-6h (half) / 1e-6 (float)(0,0,1), angle 0.5, etc.// NaN guard commentsSafeNormalize definition:
Tradeoffs