Get the latest Blender, older versions, or experimental builds.
Stay up-to-date with the new features in the latest Blender releases.
Access production assets and knowledge from the open movies.
Documentation on the usage and features in Blender.
Latest development updates, by Blender developers.
Guidelines, release notes and development docs.
A platform to collect and share results of the Blender Benchmark.
The yearly event that brings the community together.
Support core development with a monthly contribution.
Perform a single donation with more payment options available.
Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
void clamp_value(float value, float min, float max, out float result)
{
result = clamp(value, min, max);
}
void clamp_minmax(float value, float min_allowed, float max_allowed, out float result)
result = min(max(value, min_allowed), max_allowed);
void clamp_range(float value, float min, float max, out float result)
result = (max > min) ? clamp(value, min, max) : clamp(value, max, min);