Calculates the space map for the specified room or all rooms if no room is specified.
Initializes map values, starts the pixel calculation process, and updates global shader properties.
ParametersroomThe room to calculate the map for. If null, calculates for all rooms.