material

MF_Noise

  • Exposure: public
  • UE Version: 5.7

avatar author

XavierPan

December 14, 2025, 2:01 pm

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v

1 comment

  • avatar author

    XavierPan

    December 14, 2025, 2:01 pm

    struct Functions { float2 hash(float2 p) { float2 p0 =mul(float2x2(788.,721.,732.,841.),p); return 2.frac(sin(p0)56921.693)-1.; } float noise(float2 p) { float2 i=floor(p); float2 f=p-i; float2 u=fff(6.ff-15.f+10.); return lerp(lerp(dot(hash(i+float2(0.,0.)),f-float2(0.,0.)),dot(hash(i+float2(1.,0.)),f-float2(1.,0.)),u.x), lerp(dot(hash(i+float2(0.,1.)),f-float2(0.,1.)),dot(hash(i+float2(1.,1.)),f-float2(1.,1.)),u.x),u.y); }
    };

    Functions F;

    float noise = F.noise(p); return noise;