diff options
| author | yum <yum.food.vr@gmail.com> | 2026-03-31 14:51:18 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-03-31 14:51:28 -0700 |
| commit | e595ed41ef130d9883a9f9a4b9566c285f0abde3 (patch) | |
| tree | 66422cffc796e937ec322aa328151cb5f788df84 /pbr.cginc | |
| parent | 38c22e393570433bf343c74cf69a1b5542de6c57 (diff) | |
Put maintex burley tiling into optional branch; add optional rotation feature
Diffstat (limited to 'pbr.cginc')
| -rwxr-xr-x | pbr.cginc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -190,11 +190,13 @@ void apply_burley_tiling(inout Pbr pbr, inout float3 normal_tangent) { #if defined(_BURLEY_TILING) float3 weights = _burley_ctx.weights; +#if defined(_BURLEY_TILING_MAINTEX) float4 patch_0 = burley_sample_patch(_Burley_Tiling_Maintex, _burley_ctx.patch_0); float4 patch_1 = burley_sample_patch(_Burley_Tiling_Maintex, _burley_ctx.patch_1); float4 patch_2 = burley_sample_patch(_Burley_Tiling_Maintex, _burley_ctx.patch_2); float4 gaussian_blend = patch_0 * weights.x + patch_1 * weights.y + patch_2 * weights.z; pbr.albedo.xyz = burley_degaussianize(_Burley_Tiling_Maintex_LUT, burley_apply_soft_clipping(gaussian_blend.rgb, weights)); +#endif // _BURLEY_TILING_MAINTEX #if defined(_BURLEY_TILING_SMOOTHNESS) float4 patch_0_smoothness = burley_sample_patch(_Burley_Tiling_Smoothness_Map, _burley_ctx.patch_0); @@ -218,7 +220,6 @@ void apply_burley_tiling(inout Pbr pbr, inout float3 normal_tangent) { normal_tangent.xy *= _Burley_Tiling_Normal_Strength; normal_tangent = normalize(normal_tangent); #endif // _BURLEY_TILING_NORMAL - #endif // _BURLEY_TILING } |
