mirror of
https://github.com/DeMuenu/MoonlightVRC.git
synced 2026-05-06 18:22:22 +00:00
optimisations from gemini (not tested)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef Lambert
|
||||
#define Lambert(q ,i, N) \
|
||||
float3 L = normalize(q - i.worldPos); /* q = light position */ \
|
||||
float NdotL = saturate(dot(N, L) * 0.5 + 0.5); /* one-sided Lambert */ \
|
||||
/* '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
|
||||
Reference in New Issue
Block a user