While [it is possible](https://hermeneutics.stackexchange.com/a/29004/4150) that the saints are the light referred to here, (thus making them the ["Light of the world"](https://www.biblegateway.com/passage/?search=Matthew+5:14&version=NIV)), it may also be that James is referencing [Plato's Allegory of the Cave](https://hermeneutics.stackexchange.com/questions/22641/what-is-the-difference-between-the-%CE%BC%CE%BF%CF%81%CF%86%E1%BF%87-of-god-and-the-%CE%B5%E1%BC%B6%CE%B4%CE%BF%CF%82-of-god/25185#25185). In this allegory, Plato makes extensive use of light in illustrating his [Theory of Forms](https://en.wikipedia.org/wiki/Theory_of_Forms) to [Glaucon](https://en.wikipedia.org/wiki/Glaucon). 

This theory [eventually gave rise](https://christianity.stackexchange.com/questions/59363/what-influence-did-greco-roman-philosophy-have-on-the-doctrine-of-creatio-ex-ni) to the concept of [*Creatio Ex Nihilo*](https://en.wikipedia.org/wiki/Ex_nihilo#Ancient_Greek) with both *Creatio Ex Nihilo* and Plato's Theory of Forms being addressed in the opening chapter of [John 1:1](https://hermeneutics.stackexchange.com/questions/27570/john-11-how-would-%CE%9B%CF%8C%CE%B3%CE%BF%CF%82-logos-be-understood-in-hellenistic-philosophy).

It may also be that even Jesus himself was referencing Plato's light and was making the argument that it is the actions or decisions of saints (the "light/shadows" that we cast which give rise to the "form" of the world - whether it be good or evil (a [Kingdom Theology](https://en.wikipedia.org/wiki/Kingdom_theology#History_and_influence) or [Inaugurated Eschatology](https://en.wikipedia.org/wiki/Kingdom_theology#History_and_influence)). This would mean then that James is referring to *both* the idea that the saints are light and the idea of Plato's cave.

This would also explain the "begetting" referenced in verse 18 and would relate to John's depiction of Jesus as the ["Logos" of the world](https://hermeneutics.stackexchange.com/a/27573/4150) in [Chapter 1](https://www.biblegateway.com/passage/?search=John+1&version=NIV) and the light and ["begetting"](https://hermeneutics.stackexchange.com/q/22641/4150) of Jesus in [Chapter 3](https://www.biblegateway.com/passage/?search=John+3%3A16%3B+19-21&version=KJV) of John:

><sup>16</sup>For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
>
><sup>19</sup>And this is the condemnation, that light is come into the world, and men loved darkness rather than light, because their deeds were evil.
>
><sup>20</sup> For every one that doeth evil hateth the light, neither cometh to the light, lest his deeds should be reproved.
>
><sup>21</sup> But he that doeth truth cometh to the light, that his deeds may be made manifest, that they are wrought in God.

as well as the "light" of 1 Timothy 6:16 and 1 John 1:5