summaryrefslogtreecommitdiffstats
path: root/pbr.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'pbr.cginc')
-rwxr-xr-xpbr.cginc2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbr.cginc b/pbr.cginc
index 969e1a3..3e37cea 100755
--- a/pbr.cginc
+++ b/pbr.cginc
@@ -9,6 +9,7 @@
#include "interpolators.cginc"
#include "letter_grid.cginc"
#include "texture_utils.cginc"
+#include "triplanar.cginc"
#if defined(_PARALLAX_HEIGHTMAP_TEXTURE) || defined(_BURLEY_TILING_HEIGHTMAP)
float heightmap_sample(float2 uv) {
@@ -282,6 +283,7 @@ Pbr getPbr(v2f i) {
apply_kintsugi(i.worldPos, pbr.albedo.xyz, pbr.smoothness, pbr.metallic);
apply_letter_grid(i, pbr);
apply_burley_tiling(pbr, normal_tangent);
+ apply_triplanar_layers(i.worldPos, i.normal, pbr, normal_tangent);
applyDecals(i, pbr, normal_tangent);