Node: Gabor Noise Texture #110802
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue