summaryrefslogtreecommitdiffstats
path: root/pbr.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'pbr.cginc')
-rw-r--r--pbr.cginc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbr.cginc b/pbr.cginc
index 6e37942..b297a0f 100644
--- a/pbr.cginc
+++ b/pbr.cginc
@@ -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);