diff options
| author | yum <yum.food.vr@gmail.com> | 2026-03-17 16:40:05 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-03-17 16:40:05 -0700 |
| commit | 29443dfbd4b3ecbe5d0cae654e9cb72555b17220 (patch) | |
| tree | 9748c74e97731b6285a329ad02e9e5cb735f0ab0 /math.cginc | |
| parent | 1784064c7a39a69203e8975167addf1915f940bd (diff) | |
Clean up marble code
Diffstat (limited to 'math.cginc')
| -rwxr-xr-x | math.cginc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -166,7 +166,8 @@ float3 domain_warp_procedural(float3 uvw, float strength, float g = 1; for (uint ii = 0; ii < octaves; ++ii) { - noise += value_noise3(uvw + noise * strength) * g; + float3 vnoise = value_noise3(uvw + (noise * 2.0 - 1.0) * strength); + noise += vnoise * g; uvw *= lacunarity; g *= gain; } |
