For testing purposes I created a cube and applied a Glass material to a quad face of it as illustrated in the image below (principled shader mixed with transparent shader controlled by a maximum math of Shadow ray and reflection ray) and the reason why I gave it such combination is to allow a sun light ray to enter through the glass, and it worked. But now the glass won’t render with complete transparency, even though the “Transparent” option in the Render tab is ticked. If I zoom out, I see no Environment texture (HDRI) in the 3d view, but if I zoom into the cube, I see the reflection on the window glass.
What’s the solution if I want to have both, the glass material (with its reflectivity, refraction and everything) and the HDRI light effect on the room but without the image information? I want it transparent cause I need to do a whole separate set of post processing in the compositor.