generateTiles( tilesX, tilesY ) {

		const tiles = [];
		const tileWidth = 1 / tilesX;
		const tileHeight = 1 / tilesY;

		for ( let y = 0; y < tilesY; y ++ ) {

			for ( let x = 0; x < tilesX; x ++ ) {

				tiles.push( {
					x: [ x * tileWidth, ( x + 1 ) * tileWidth ],
					y: [ ( tilesY - 1 - y ) * tileHeight, ( tilesY - y ) * tileHeight ], // Start from top row
					index: y * tilesX + x
				} );

			}

		}

		return tiles;

	}
Generates the tiles for the shadow map based on the specified number of tiles along the X and Y axes.

@param {number} tilesX - The number of tiles along the X-axis.
@param {number} tilesY - The number of tiles along the Y-axis.
@returns {Array<Object>} An array of tile objects, each containing the tile's bounds and index.