Node: Gabor Noise Texture #110802

Open
Charlie Jolly wants to merge 68 commits from CharlieJolly/blender:gabor into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
4 changed files with 4 additions and 4 deletions
Showing only changes of commit 64fd82ab2b - Show all commits

View File

@ -381,7 +381,7 @@ float gabor_noise(point p,
}
FractalParams fp;
fp.roughness = clamp(roughness, 0.0, 1.0);
fp.roughness = roughness;
fp.octaves = clamp(detail, 0.0, 15.0);
fp.scl_lacunarity = scl_lacunarity;
fp.fre_lacunarity = fre_lacunarity;

View File

@ -365,7 +365,7 @@ ccl_device float gabor_noise(float3 p,
}
FractalParams fp;
fp.roughness = clamp(roughness, 0.0f, 1.0f);
fp.roughness = roughness;
fp.octaves = clamp(detail, 0.0f, 15.0f);
fp.scl_lacunarity = scl_lacunarity;
fp.fre_lacunarity = fre_lacunarity;

View File

@ -422,7 +422,7 @@ void node_tex_gabor(vec3 co,
/* Set Fractal params. Octaves are clamped as these directly impact performance. */
FractalParams fp;
fp.roughness = clamp(roughness, 0.0, 1.0);
fp.roughness = roughness;
fp.octaves = clamp(detail, 0.0, 15.0);
fp.scl_lacunarity = scl_lacunarity;
fp.fre_lacunarity = fre_lacunarity;

View File

@ -559,7 +559,7 @@ static float gabor_noise(const float3 p,
}
FractalParams fp;
fp.roughness = math::clamp(roughness, 0.0f, 1.0f);
fp.roughness = roughness;
fp.octaves = math::clamp(detail, 0.0f, 15.0f);
fp.scl_lacunarity = scl_lacunarity;
fp.fre_lacunarity = fre_lacunarity;