diff options
Diffstat (limited to 'yum_lighting.cginc')
| -rw-r--r-- | yum_lighting.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yum_lighting.cginc b/yum_lighting.cginc index d7afcef..dab631a 100644 --- a/yum_lighting.cginc +++ b/yum_lighting.cginc @@ -234,7 +234,7 @@ YumLighting GetYumLighting(v2f i, YumPbr pbr) { YumLighting light = (YumLighting) 0;
// normalize has no visibile impact in test scene
- light.view_dir = -i.eyeVec.xyz;
+ light.view_dir = -normalize(i.eyeVec.xyz);
light.dir = getDirectLightDirection(i);
|
