I have resolved this problem. The frame buffer errors and broken lightings are caused by the size mismatch between the depth and stencil buffers. Stencil buffer uses 32bits while depth buffer is set to use 16bits in lighting shadow stage, Sky Occlusion and Environment Probes. Changing the depth buffer to 32bit via the add_depth_attachment
function will fix the problem
1 Like