will be an inf if the camera height is computed as below the surface of the Earth by more than about 22m (I've not yet established why that's happened to me as it isn't). This then propagates into the atmos_color varying, and gets turned into NaNs by the rasteriser, which then pollutes every calculation the fragment shader does with anything that's dependent, eventually making the output colour NaN, ruining the whole fragment.
There should probably be some clamping here to make the shader more robust.
There might be another issue report coming later once I figure out how I got into this situation in the first place if it turns out it's Rocky's fault rather than a problem with how it's integrated into the app I'm working on.
The expression
will be an inf if the camera height is computed as below the surface of the Earth by more than about 22m (I've not yet established why that's happened to me as it isn't). This then propagates into the
atmos_color
varying, and gets turned into NaNs by the rasteriser, which then pollutes every calculation the fragment shader does with anything that's dependent, eventually making the output colour NaN, ruining the whole fragment.There should probably be some clamping here to make the shader more robust.
There might be another issue report coming later once I figure out how I got into this situation in the first place if it turns out it's Rocky's fault rather than a problem with how it's integrated into the app I'm working on.