Rendering Modes
Rendering Modes is the master switch for how Genesis evaluates lighting. Lit runs a stylized PBR pipeline, Unlit skips lighting entirely for flat color, and Toon swaps the diffuse model for cel/ramp evaluation. Every other feature layers on top of the mode you choose here.
When to use it
- Lit — characters, environments, and props that respond to scene lighting.
- Unlit — world-space UI, skyboxes, magic FX, and baked-only assets.
- Toon — the anime and cartoon look; pairs with Cel Shading, Outline, and Rim Lighting.
- Hybrid — start in Lit and enable Cel Shading for toon diffuse while keeping PBR specular.
Toon vs Lit + Cel Shading
Modes
- Lit — full URP forward lighting with a stylized diffuse selector (Lambert, Oren-Nayar, Minnaert, Gooch). Receives the main and additional lights and respects the URP shadow path.
- Unlit — skips the lighting loop entirely; albedo times Base Color plus emission goes straight to the framebuffer. The cheapest mode on mobile.
- Toon — diffuse is evaluated through Cel Shading by default, while specular and rim use their stylized variants. Trims
_DIFFUSE_LAMBERT,_DIFFUSE_ORENNAYAR, and similar keywords from the build.
The same mesh under the same light; only the Rendering Mode changes. Drag to compare.
Properties
Usage
- Pick the Rendering Mode that matches your art direction; switching later relinks features automatically.
- In Lit, pick a Diffuse Model. Lambert is cheapest; Oren-Nayar adds matte rough-surface response.
- In Toon, enable Cel Shading and Outline for the canonical anime stack.
- Use Unlit for geometry that already encodes its lighting in the texture, such as skies and painted props.
material.SetFloat("_RenderingMode", 2); // 0=Lit, 1=Unlit, 2=Toon
material.SetFloat("_DiffuseModel", 1); // Oren-Nayar
material.EnableKeyword("_DIFFUSE_ORENNAYAR");Tips & gotchas
- Switching modes at runtime requires the corresponding keyword variant in the build — add it to the Shader Variant Collection or use the Feature Configurator.
- Unlit still respects fog unless you also disable the fog keyword.
- Toon mode forces stylized specular; if you need GGX specular, stay in Lit and enable Cel Shading manually.
- All three modes are stereo-safe, but additional lights become more expensive in single-pass stereo — budget early.
Related
- Cel Shading — the primary diffuse model in Toon mode.
- Surface Settings — albedo, alpha, and blend mode.
- Specular Highlights — GGX versus stylized.
- Gooch Shading — illustrative cool-to-warm diffuse.
Last updated on