diff options
| author | yum <yum.food.vr@gmail.com> | 2026-01-20 22:15:09 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-01-20 22:15:09 -0800 |
| commit | a54b415ab89302cf1f74f78360595ec0eff8fc7b (patch) | |
| tree | 678cd3c8076c0c8995d6e1033f401738a22c1bea /yum_lighting.cginc | |
| parent | d24a5d839bad7ae0a9a6525f7c4d30fa0877e073 (diff) | |
Push eyeVec into fragment
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 846775c..64c3c1d 100644 --- a/yum_lighting.cginc +++ b/yum_lighting.cginc @@ -337,7 +337,7 @@ YumLighting GetYumLighting(v2f i, f2f f, YumPbr pbr) { YumLighting light = (YumLighting) 0; // normalize has no visibile impact in test scene - light.view_dir = -normalize(i.eyeVec.xyz); + light.view_dir = -f.viewDir; light.dir = getDirectLightDirection(i); |
