openglgeometryglutlightingpixel-shading

Lighting inside of a sphere?


I have this question in mind: I need to make a scene that looks like a real sky. My first idea was to make a cube and texturize it. It wasn't that good looking. I came up with the idea of using a sphere. But I couldn't light it from inside. I've put the camera on the origin watching (0,0,-100). Ambient and specular light source also at the origin. Couldn't see any thing lit! What are the ways of making a sky and how can I light the inside of a sphere?


Solution

  • Try changing the cull mode since you're on the inside of the sphere.

    I'm an XNA guy, but it appears that this would be the OpenGL equivalent. If you have ambient lighting on as you said, you should be able to see something regardless of normals, I believe.