docs.unity.cn
    Show / Hide Table of Contents

    Method cellular2x2x2

    cellular2x2x2(float3)

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

    Declaration
    public static float2 cellular2x2x2(float3 P)
    Parameters
    Type Name Description
    float3 P

    A point in 3D space.

    Returns
    Type Description
    float2

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

    Remarks

    Faster than using 3x3x3, at the expense of some pattern artifacts. F2 is often wrong and has sharp discontinuities. If you need a smooth F2, use the slower 3x3x3 version.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023