You can now configure RenderOptions of every TCastleScene. Simply
access it like MyScene.RenderOptions.OcclusionQuery := true. It is available also in the editor, as you can see on the screenshots ? All the features are documented in TCastleRenderOptions class, in particular you can: Configure lighting, textures Configure blending, blending equations and sorting Configure occlusion
query (powerful …