diff options
| author | yum <yum.food.vr@gmail.com> | 2025-08-06 16:50:12 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-08-06 16:50:16 -0700 |
| commit | cc54dca9cd98ca7020ccc8768a51d78ab117da79 (patch) | |
| tree | a71ded2e9c17105aaa972e1296c5b07d6b5b9c2a /pbr.cginc | |
| parent | 99d161288bfe2d10c331c97e6b7571f9c884e912 (diff) | |
more cleanup; add mesh normals
Diffstat (limited to 'pbr.cginc')
| -rw-r--r-- | pbr.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -22,7 +22,7 @@ void propagateSmoothness(inout Pbr pbr) { Pbr getPbr(v2f i) { Pbr pbr = (Pbr) 0; - pbr.normal = float3(0, 1, 0); + pbr.normal = normalize(i.normal); pbr.albedo = _Color; pbr.smoothness = _Smoothness; propagateSmoothness(pbr); |
