A GPU accelerated lightmapper for Unity, powered by Vulkan. Easy to use, lightweight (only ~1MB) and fast.
- Nvidia, AMD, Intel GPUs
- Windows, Linux, macOS
- Hardware Ray-Tracing with VK_KHR_ray_query
- Software Ray-Tracing with CWBVHs
- Realtime path-traced preview window
- Non-Directional, Dominant Direction and Monochromatic L1 SH Lightmaps
- Multisampling and Anti-Aliasing
- Unity BIRP and URP
- Directional, Point, Spot, Rectangle and Disc Lights
- RGB Light Cookies
- Emissive Materials with Multiple Importance Sampling
- UV Packing with hole filling and split charts mode
- Open Image Denoise 2.0
- Seam stitching with a least squares solver
- L2 SH Light Probe Baking
- VRC Light Volumes
- Mixed Lights Baked Indirect and Shadowmask mode
- Ambient Occlusion
- Lightmap Groups
- If you'd like to see it further improved, consider supporting on Patreon
- Alternatively you can consider buying some of my assets on Booth
Make sure to also read Updating
- Install with the VRChat Creator Companion
- Download the release https://github.com/z3y/glim/releases
- Unzip the folder, open the package manager in unity
Window > Package Manager - Click + add package from disk and select the
package.jsonfrom that folder
- Download the Windows
.zipfrom https://github.com/RenderKit/oidn/releases - Extract it anywhere on your computer (e.g.
C:\oidn) - Set the
OpenImageDenoise_DIRenvironment variable to that extracted folder (the folder containing bin, doc, include, lib):- Press Start, type "environment variables", and open "Edit environment variables for your account"
- Click New...
- Name:
OpenImageDenoise_DIR - Value: the path to the extracted folder (e.g.
C:\oidn) - Click OK on all windows
- Restart Unity and Unity Hub
- After baking the log will show if OIDN loaded properly.
- Fedora Linux:
sudo dnf install oidn - Debian / Ubuntu:
sudo apt install libopenimagedenoise-dev - Arch Linux:
sudo pacman -S openimagedenoise - Alpine Linux:
sudo apk add openimagedenoise - NixOS:
nix-shell -p openimagedenoise
brew install open-image-denoise
- Make sure to setup the denoiser first (otherwise denoising will be skipped)
- Setup the scene (mark GameObjects as static, generate lightmap uvs etc.)
- The lightmapper uses regular Unity light components, make sure to set them to baked
- Menu Item
Tools > Glim > Bake - Adjust settings on the created GameObject and press
Generate Lighting
- Make sure to close Unity first before updating to unload all currently loaded assemblies.
- Import the new package.
- By default one lightmap texture is baked containing the entire scene
- To create multiple lightmaps add a
Lightmap Group Selectorcomponent to a game object - Right click,
Create > Lightmap Group (Glim)asset and assign it to the selector component - All the child GameObjects will be packed into that group
For additional settings for baking you can add a GlimAdditionalLightSettings component to a Light
- Exposes the inner angle for spot lights and draws a gizmo for the Built-In render pipeline
- Adds an Area (Rectangle) Light option for a cookie texture
AI tools were used to assist with parts of the development process. AI Generated PRs are accepted, as long as they're reasonable to review.
- Add the slang shader compiler at PATH
cargo build --release- Copy the compiled dll into the
/Editorfolder - Alternatively you can run the
test_previewortest_baketests without Unity