- Home /
Question by
tangwilliam · Dec 23, 2021 at 02:31 PM ·
shaderglobal illumination
The L2 of SH(sphere harmonics) is lost when EVALUATE_SH_MIXED is defined in URP
I find that the L2 which calculated by SampleSHVertex() in vertex is NEVER USED while the keyword EVALUATE_SH_MIXED is defined. My Unity is 2021.2, and URP version at 12.1.
The comments told us we do Evaluates L2 SH in vertex and L0L1 in pixel when EVALUATE_SH_MIXED is defined in GlobalIllumination.hlsl.
But in SampleSHPixel(half3 L2Term, half3 normalWS) the L2Term is never used, only SHEvalLinearL0L1() is returned. So where does the MIX happen ? Is it a bug ?
Comment