CODYRUN is a multi-zone software integrating thermal building simulation, airflow, and pollutant transfer. Described in numerous publications, this software was originally used for the passive design of buildings, both for research and teaching purposes. In this context, the data treated were mainly concerned with volumes (zones), surfaces and thicknesses (walls and windows), materials, and systems, with the aim to determine temperatures, heat fluxes, energy consumed, air transfers, and so on.The question thus arose as to the integration of indoor lighting conditions into the simulation. Hence, previous data structures had to be amended to incorporate the spatial positioning of entities (walls, windows, and artificial lighting sources) through vertexes. A set of procedures was also developed for polygons as well as calculating natural and artificial lighting.The results of this new daylighting module were then compared with other results of simulation codes and experimental cases both in artificial and natural environments. Excellent agreements were obtained, such as the values for luminous efficiencies in a tropical and humid climate.A simulation exercise was conducted in a classroom located in Reunion Island (French overseas territory in the Indian Ocean), thus confirming the interest for thermal and daylighting designs in lowenergy buildings.