mirror of
https://github.com/DeMuenu/MoonlightVRC.git
synced 2026-05-06 18:22:22 +00:00
7 lines
246 B
HLSL
7 lines
246 B
HLSL
#ifndef Lambert
|
|
#define Lambert(q ,i, N) \
|
|
/* 'L' is inherited from InLoopSetup, avoiding an expensive normalize() */ \
|
|
half NdotL = saturate(dot(N, L) * 0.5 + 0.5); /* one-sided Lambert */ \
|
|
if (NdotL <= 0) continue; \
|
|
|
|
#endif |