I want to use a sphere or plane to draw a moon in my sky so
Tags {"Queue" = "Geometry-1" }
Material { }
Lighting Off
ZWrite Off
Fog { Mode Off }
I want it to ignore my far clip, but this causes it to be cleared by my camera with a skybox clear flag.
How can I change this code to make it work?
Can you not just paint it into the skybox texture?
Regardless, there’s no way to draw something that has been clipped by the camera as that culling process happens way before the render process.
The other option is to use a 2nd camera as a “skybox” camera as you can set-up different clip distances for it.
Set culling mask for the cameras so you only render the skybox layer tagged objects into the 2nd camera. Set the depth of the sky camera as the lowest. Sounds odd I know but it works. If you’ve ever used Unreal or the Quake/HL2 editing tools think of it as a 3DSkybox.