summaryrefslogtreecommitdiffstats
path: root/pbr.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-03-31 21:20:11 -0700
committeryum <yum.food.vr@gmail.com>2026-03-31 21:20:11 -0700
commit3ee87f52f8979aa166c23fbfc2e310590a416a1e (patch)
tree501ea1d3b9174543557f4d578fe915b12c536522 /pbr.cginc
parente595ed41ef130d9883a9f9a4b9566c285f0abde3 (diff)
Begin work on triplanar projection feature
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);