I have created a cube which is textured, and I am calling this function to create different cubes.
One of these is a skybox, so the player sees the inside of the cube, this works perfectly.
Others are buildings and things, these end up looking like this: (the sky is the skybox)
The second texture is supposed to appear as a checkerboard - and it does when applied to the skybox:
But remember, the skybox is just the same cube drawn larger so the player only sees the inside...
I'm wondering if anyone knows why, is there something obvious I'm missing as to why it only works on the inside of boxes?
This is the code for my cube:
Is there a flag or something I need to change to specify whether it's drawn on the inside or outside of the box? That's the only difference I can think of.
The skybox is drawn by:
The other boxes: