public override Blocks GenerateBlock2(Vector2i position, Heights macroHeight) { var rotatedPos = Vector2.Transform((Vector2)position, Quaternion.FromEulerAngles(0, 0, _hillsOrientation)); return(new Blocks(BlockType.Sand, BlockType.GoldOre, new Heights((float)(_dunesNoise.GetSimplex(rotatedPos.X / 10f, rotatedPos.Y / 30f)) * 2 + macroHeight.Main, macroHeight.Underground, macroHeight.Base))); //Вытянутые дюны }
public static OpenTK.Vector2 Transform(this OpenTK.Vector2 position, OpenTK.Matrix3 matrix) { return(position.Transform(matrix.ToMatrix4())); }