I was testing shadows, and I noticed that only few objects had shadows. I looked on the forum and I saw that it was "normal" in OMSI 2. None of my objects have it, except my traffic lights. So I tested everything that was in the .sco, and it appears that the element responsible of this is the [script].
Only a .sco with a [script] and a [shadow] will have shadows. I saw that original street lights had shadows, so I think another tag can trigger it.
So, if I want shadow on an object, I put at the end of the .sco :
And the script "nothing.osc" must have a frame and something inside, if not the shadow will not appears. Here is the nothing.osc :
I don't think it's really good in term of performance. Did anyone else find another solution?