INNER CODE UNIT · C#

hmYRatio

Blotch3D/Blotch3D · src/BlGeometry.cs:406

				hmYRatio = heightMap.GetLength(0) / (double)numY;
			}

			var pos = new Vector3();

			var grid = new VertexPositionNormalTexture[numX * numY];
			for (int y = 0; y < numY; y++)
			{
				for (int x = 0; x < numX; x++)
				{
					pos.Z = (float)y / (numY-1);

					var radius = (1 - pos.Z) + pos.Z * topDiameter;
					
					radius *= .5;

					if(heightMap!=null)
					{

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…