I stared at line 347. A single instruction: log2( saturate( dot( N, L ) ) ) .

: Use the GeForce Experience app or visit the official site.