Settings and keywords reference for stripping keywords in URP
Explore the settings and shader keywords you can use to strip shader variants.
읽는 시간 6분최근 업데이트: 한 달 전
Explore the settings and shader keywords you can use to speed up build time in the Universal Render Pipeline (URP) by stripping shader variants. For more information, refer to Strip shader variants.
Decals
Feature | Location in the Editor | Keyword set for Shader Build Settings |
|---|---|---|
| Decals that use DBuffer mode | Universal Renderer. In the Decals Renderer Feature, set Technique to Screen Space. | |
| Decals that use Screen Space mode | Universal Renderer. In the Decals Renderer Feature, set Technique to DBuffer. | |
| Rendering layers for decals | Universal Renderer. In the Decals Renderer Feature, disable Use Rendering Layers. | |
Fog
Feature | Location in the Editor | Keyword set for Shader Build Settings |
|---|---|---|
| Fog | Lighting window. In the Other Settings section, disable Fog. | |
To keep fog but reduce shader variants by using dynamic branching, refer to Enable dynamic branching in prebuilt shaders.
Level of detail (LOD)
Feature | Location in the Editor | Keyword set for Shader Build Settings |
|---|---|---|
| LOD transitions | URP asset. In the Quality section, disable LOD Cross Fade. | |
For other ways to reduce LOD shader variants, refer to Strip LOD shader variants.
Lighting
Feature | Location in the Editor | Keyword set for Shader Build Settings |
|---|---|---|
| Additional lights (Forward rendering paths only) | URP asset. In the Lighting section, set Additional Lights to Disabled. | |
| Light cookies | Light components. In the Emission section, remove cookie textures from all lights in your project. | |
| Rendering layers for lights | URP asset. For more information, refer to Rendering Layers. | |
Lightmapping
Feature | Location in the Editor | Keyword set for Shader Build Settings |
|---|---|---|
| Lightmaps | Lightmapping settings. Disable Realtime Global Illumination and Baked Global Illumination. | |
| Directional lightmaps | Lightmapping settings. Set Directional Mode to Non-Directional. | |
| Bicubic sampling of lightmaps | Graphics settings. In the Lighting section, disable Use Bicubic Lightmap Sampling. | |
Materials
Feature | Location in the Editor | Keyword set for Shader Build Settings |
|---|---|---|
| Alpha clipping | Material properties. In the Surface Options section, disable Alpha Clipping. | |
| Clear coat | Material properties. In the Detail Inputs section, disable Clear coat for all Complex Lit materials. | |
| Detail mapping | Material properties. In the Detail Inputs section, remove the textures for all materials. | |
| Emission | Material properties. In the Detail Inputs section, disable Emission for all materials. | |
| Environment reflections | Material properties. In the Advanced Options section, disable Environment Reflections. | |
| Height maps | Material properties. In the Surface Inputs section, remove the Height Map texture for all materials. | |
| Metallic or specular maps | Material properties. In the Surface Inputs section, remove the Metallic Map or Specular Map texture for all materials. | |
| Normal maps | Material properties. In the Surface Inputs section, remove the Normal Map texture for all materials. | |
| Occlusion maps | Material properties. In the Surface Inputs section, remove the Occlusion Map texture for all materials. | |
| Shadows | Material properties. In the Surface Options section, disable Receive shadows. | |
| Smoothness from Base Map alpha | Material properties. In the Surface Inputs section, under Metallic Map or Specular Map, set Source to Metallic Alpha or Specular Alpha. | |
| Specular highlights | Material properties. In the Advanced Options section, disable Specular Highlights. | |
| Specular highlights on transparent materials | Material properties. In the Surface Options section on all transparent materials, disable Preserve Specular Lighting and set Blending Mode to either Alpha, Premultiply, or Additive. | |
| Specular setup | Material properties. In the Surface Options section, set Workflow mode to Metallic for all materials. | |
| Transparency | In the Surface Options section of the Material properties, set Surface Type to Opaque for all materials. | |
| Terrain holes | URP asset. In the Rendering section. Disable Terrain Holes. | N/A |
Post-processing
Feature | Location in the Editor | Keyword set for Shader Build Settings |
|---|---|---|
| Bloom | Volume Overrides. Remove the Bloom Volume Override. | |
| Chromatic Aberration | Volume Overrides. Remove the Chromatic Aberration Volume Override. | |
| Depth of Field - high quality sampling | Volume Overrides. In the Depth of Field Volume Override, disable High Quality Sampling. | |
| Dithering | Camera properties. In the Rendering section, disable Dithering. | |
| Film Grain | Volume Overrides. Remove the Film Grain Volume Override. | |
| Lens Distortion | Volume Overrides. Remove the Lens Distortion Volume Override. | |
| Screen Space Ambient Occlusion (SSAO) | Universal Renderer. Remove the Screen Space Ambient Occlusion Renderer Feature. | |
| Tonemapping | Volume Overrides. Remove Tonemapping Volume Override. | |
| Alpha processing | URP asset. In the Post-processing section, disable Alpha Output. | |
Rendering paths
Feature | Location in the Editor | Keyword set for Shader Build Settings |
|---|---|---|
| Accurate G-buffer normals (Deferred rendering paths only) | Universal Renderer. In the Rendering section, disable Accurate G-buffer normals. This has no effect on platforms that use the Vulkan graphics API. | |
| Fast sRGB to linear conversion | URP asset. In the Post-processing section, disable Fast sRGB/Linear conversions. | |
| Forward+ rendering path | Universal Renderer. In the Rendering section, set Rendering Path to Forward+ or Deferred+. | |
Reflections
Feature | Location in the Editor | Keyword set for Shader Build Settings |
|---|---|---|
| Reflection Probe blending | Reflection Probe properties. Disable Probe Blending for all Reflection Probes. | |
| Reflection Probe box projection | Reflection Probe properties. Disable Box Projection for all Reflection Probes. | |
| Reflection Probe rotation | Graphics settings. In the Lighting section, disable Use Reflection Probe Rotation. | |
Shadows
Feature | Location in the Editor | Keyword set for Shader Build Settings |
|---|---|---|
| Main lights cast shadows | URP asset. In the Lighting section, under Main Light, disable Cast Shadows. | |
| Additional lights cast shadows | URP asset. In the Lighting section, under Additional Lights, disable Cast Shadows. | |
| Point Lights cast shadows | Light components. In the Shadows section, set Shadow Type to No Shadows for all Point Lights. | |
| Soft shadows | URP asset. In the Shadows section, disable Soft Shadows. | |
| Shadows from the Subtractive Lighting Mode | URP asset. In the Lighting section, disable Mixed Lighting. | |
| Shadows from the Shadowmask Lighting Mode | Lightmapping settings. Set Lighting Mode to Baked Indirect or Subtractive. | |