I’ve made a model of Earth for Garry’s Mod (really simple), and I’ve scripted an entity using it’s model, cause having an Earth entity seems pretty cool.
One day I thought about the Earth at night, and how when it gets dark, people turn on their lights, causing it to not just be black when there’s a shadow over some part of Earth.
Then I thought about making the entity so that if any part of it has a shadow on it, instead of just a shadow being there, the actual texture of the Earth possibly could get swapped (partially, only on the parts with shadow on them) into one with night lights on it. I have a texture for the night lights and also the regular texture, both mapped and working with the model.
My question is, would this be possible whatsoever, and if so, how? Any hidden QC commands for this kind of thing, like $shadowtexture or something?