diff options
| author | yum <yum.food.vr@gmail.com> | 2026-01-20 22:01:22 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-01-20 22:01:22 -0800 |
| commit | ffb4b6b861a7f4a5c2468824e16872883f64c290 (patch) | |
| tree | b009b9e619d4ca94e5fc0c6d9b0cdc8c83de75e8 /yum_pbr.cginc | |
| parent | 0ef282da6a87c27e4056faaedb2847eed1f5a8a7 (diff) | |
Add fur shader, and begin slimming interpolators
Diffstat (limited to 'yum_pbr.cginc')
| -rw-r--r-- | yum_pbr.cginc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/yum_pbr.cginc b/yum_pbr.cginc index cec42d2..e19c931 100644 --- a/yum_pbr.cginc +++ b/yum_pbr.cginc @@ -140,6 +140,12 @@ void applySeaFoam(v2f i, inout YumPbr pbr) { YumPbr GetYumPbr(v2f i, float3x3 tangentToWorld) { YumPbr result = (YumPbr)0; +#if defined(_FUR) + float fur_layer = i.vertexLight.w; + float fur_thickness = _Fur_Heightmap.SampleBias(trilinear_aniso4_repeat_s, i.uv01.xy * _Fur_Heightmap_ST.xy, _Fur_Heightmap_Mip_Bias).r; + clip(fur_thickness - fur_layer / _Fur_Layers); +#endif + float2 raw_uv = i.uv01.xy; #if defined(_UV_DOMAIN_WARPING) { |
