Skip to guide
Rainbow Lab/Documentation

Glass Foundry

Add glass to your scene

  1. Create UI > Foundry > Glass Foundry > Glass Panel, or add Glass Image to an existing UI object.
  2. In a supported URP scene, setup automatically assigns the camera, adds Glass Source and enables Glass Renderer Feature on that camera's renderer. It follows a camera-specific renderer override and saves the shader references needed by builds. You do not need to find the renderer asset in the Project window.
  3. If a camera choice is needed, the setup window opens with a Scene cameras list and Camera field. Choose the world camera and click Set up and assign. The Set up glass button in the image Inspector opens this window again.
  4. Open the Game view. Try the Frosted, Clear and Liquid buttons in the Glass Image Inspector, or choose a saved style from the library. Glass Source > Preview In Edit Mode controls Editor capture.

Automatic selection uses an assigned source or Canvas camera first, then a MainCamera, a single existing source, or the only eligible camera in the same scene. It excludes inactive, overlay, offscreen and partial-viewport cameras from its automatic search. Ambiguous cameras require a choice. Adding glass in Prefab Mode does not modify scene cameras; assign the source on the scene instance. Existing scenes and prefabs are not scanned and rewritten when the asset imports.

The setup window shows the chosen renderer and which components are missing or disabled. Tools > Foundry > Glass Foundry > Setup > Set up camera opens it manually. Check camera setup on Glass Source opens it for that camera. A Built-in or 2D renderer, overlay camera or Compatibility Mode needs changing before setup can proceed. Cameras sharing a renderer also share its renderer features. Setup supports Undo and retains your pipeline selection.

For manual setup, add Glass Source to the camera and Glass Renderer Feature to its Universal Renderer (3D). Use a Screen Space - Overlay Canvas and assign the source to each Glass Image. Setup > Set up scene automatically also repairs the current scene's camera setup without selecting a renderer asset.

Use URP's Render Graph path; Compatibility Mode is not supported. No opaque-texture or depth-texture option is required. The blur pass requests an intermediate camera colour texture when it has work to do.