diff options
Diffstat (limited to 'yum_lighting.cginc')
| -rw-r--r-- | yum_lighting.cginc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/yum_lighting.cginc b/yum_lighting.cginc index 5e627d5..3af5654 100644 --- a/yum_lighting.cginc +++ b/yum_lighting.cginc @@ -202,11 +202,7 @@ YumLighting GetYumLighting(v2f i, YumPbr pbr) { // normalize has no visibile impact in test scene
light.view_dir = -i.eyeVec.xyz;
-#if defined(POINT) || defined(POINT_COOKIE) || defined(SPOT)
- light.dir = normalize((_WorldSpaceLightPos0 - i.worldPos).xyz);
-#else
- light.dir = _WorldSpaceLightPos0;
-#endif
+ light.dir = getDirectLightDirection(i);
light.direct = _LightColor0.rgb;
// TODO filament's spherical harmonics look nicer than this.
|
