Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

noise.cellular2x2

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static float2 cellular2x2(float2 P);

Parameters

Parameter Description
P A point in 2D space.

Returns

float2 Feature points. F1 is in the x component, F2 in the y component.

Description

2D Cellular noise ("Worley noise") with a 2x2 search window.

Faster than using 3x3, at the expense of some strong pattern artifacts. F2 is often wrong and has sharp discontinuities. If you need a smooth F2, use the slower 3x3 version. F1 is sometimes wrong, too, but OK for most purposes.