createDefaultSkybox seems to work fine with a perspective camera, but once I switch to an orthographic camera, the skybox disappears. If I set skybox.ignoreCameraMaxZ = false;
then it renders correctly again. Is this intended?
Yes, ortho camera is different from perspective camera. For example, minZ that is usually close to 0 for perpective is different. like this:
min/max z are in world coordinates but in clip space for perspective camera. So clipped geometry is different.
1 Like
Iām not quite sure what the attached playground is supposed to be illustrating. If you swap out the default skybox with an environment map such as textures/environment.env, then it becomes more clear that what is being rendered is the backside of the skybox behind the camera, which makes sense since the near clip is being extended to be behind the camera.