Hi Everyone,
I’m implementing a simple sybox system. The idea is to allow the user to specify an image-skybox or a procedural one (define an equator and poles colors).
I thought it could be as simple as drawing a cube centered at the origin in camera space, oriented according to the camera orientation in world space, using world space coordinates to sample a cubemap/interpolate between poles and equator colors.
I thought there was no need to have any kind of perspective so I am providing camera space coordinates to the gpu and a matrix for the rotation.
The results I get are clearly not ideal, the skybox looks a lot boxy while ideally I wanted to have something more like a dome.
This is a visualization of the interpolated y coordinate (sin(y*t))
Same with a cubemap.
Is there something wrong with the method I’m using itself? Is there a way to sample a cubemap by drawing a cube and somehow achieve the illusion of a dome?