diff options
Diffstat (limited to 'pbr.cginc')
| -rw-r--r-- | pbr.cginc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3,6 +3,7 @@ #include "filamented.cginc" #include "globals.cginc" +#include "instancing.cginc" #include "interpolators.cginc" #include "texture_utils.cginc" @@ -140,6 +141,8 @@ void apply_marble(float3 world_pos, inout float3 albedo) { Pbr getPbr(v2f i) { Pbr pbr = (Pbr) 0; + instancing_frag(i); + float3 n = normalize(i.normal); float3 t = normalize(i.tangent.xyz); t = normalize(t - n * dot(n, t)); // Gram-Schmidt to avoid skew |
