ghiboz Wrote:sorry... there were a misunderstanding...
how many texture are read to draw the sky? and how are manage into the code?
All track object meshes are stored in the track's objects/objects.jpk file. All track object textures are stored as objects/*.png. In the file objects/list.txt, each track object mesh and texture is listed, along with some information that tells VDrift how to use the object. Here's the part that's important to answer you question:
the sky is a normal track object and it's treated exactly the same as any other track object that the track modeler has put in the track. The only difference is that it has its information in list.txt set so VDrift knows to draw it in a way that it'll look correct as a skybox (not light it, etc).
There is no code that draws only the sky. Since the sky is a track object put there by the track modeler (like any other), the same code that draws all of the other track objects draws the sky.
In an old, old version of VDrift the sky was drawn specially, and it allowed changing weather and moving clouds... but most tracks are modeled with their own skyboxes as track objects, so now that is what's used. Are you wanting to add that changing weather capability back?