INNER CODE UNIT · C#
len
Blotch3D/Blotch3D · src/BlGeometry.cs:60
var len = width * height;
var pixels = new int[len];
tex.GetData(pixels);
return CreatePlanarSurface
(
(x,y)=>(double)(pixels[x + width * y] & mask) / (mask + 1),
width,
height,
mirrorY,
smooth,
noiseLevel
);
}
/// <summary>
/// If the ray intersects the plane, return the intersection point. Otherwise return null.
/// </summary>