opengl-tutorials / ogl

http://www.opengl-tutorial.org
2.69k stars 925 forks source link

Skybox please #96

Closed RogyDev closed 4 years ago

RogyDev commented 4 years ago

I have been looking for a good opengl tutorial and i find this cool one. I am using it in my project but a notice that it is not include skybox exemple.

So plz how to create a skybox ?

VBorisof commented 4 years ago

I think you can just create a huge cube, apply sky texture to it, and put yourself inside :)

RogyDev commented 4 years ago

Thank you for the replay, i have created a cube and i apply a cubemap texture to it, and before rendering it i used glDepthFunc(GL_LEQUAL) so everything else will be inside it. Thank so much for those tutorials.