Class ShaderKeywordStrings
Container class for keywords used in URP shaders.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public static class ShaderKeywordStrings
Fields
AdditionalLightShadows
Keyword used for shadows on additional lights.
Declaration
public const string AdditionalLightShadows = "_ADDITIONAL_LIGHT_SHADOWS"
Field Value
Type | Description |
---|---|
string |
AdditionalLightsPixel
Keyword used for per pixel additional lights.
Declaration
public const string AdditionalLightsPixel = "_ADDITIONAL_LIGHTS"
Field Value
Type | Description |
---|---|
string |
AdditionalLightsVertex
Keyword used for per vertex additional lights.
Declaration
public const string AdditionalLightsVertex = "_ADDITIONAL_LIGHTS_VERTEX"
Field Value
Type | Description |
---|---|
string |
BillboardFaceCameraPos
Keyword used for Billboard cameras.
Declaration
public const string BillboardFaceCameraPos = "BILLBOARD_FACE_CAMERA_POS"
Field Value
Type | Description |
---|---|
string |
BlitSingleSlice
Keyword used for Single Slice Blits.
Declaration
public const string BlitSingleSlice = "BLIT_SINGLE_SLICE"
Field Value
Type | Description |
---|---|
string |
BloomHQ
Keyword used for high quality Bloom.
Declaration
public const string BloomHQ = "_BLOOM_HQ"
Field Value
Type | Description |
---|---|
string |
BloomHQDirt
Keyword used for high quality Bloom dirt.
Declaration
public const string BloomHQDirt = "_BLOOM_HQ_DIRT"
Field Value
Type | Description |
---|---|
string |
BloomLQ
Keyword used for low quality Bloom.
Declaration
public const string BloomLQ = "_BLOOM_LQ"
Field Value
Type | Description |
---|---|
string |
BloomLQDirt
Keyword used for low quality Bloom dirt.
Declaration
public const string BloomLQDirt = "_BLOOM_LQ_DIRT"
Field Value
Type | Description |
---|---|
string |
CastingPunctualLightShadow
Keyword used during shadow map generation to differentiate between directional and punctual light shadows, as they use different formulas to apply Normal Bias.
Declaration
public const string CastingPunctualLightShadow = "_CASTING_PUNCTUAL_LIGHT_SHADOW"
Field Value
Type | Description |
---|---|
string |
ChromaticAberration
Keyword used for Chromatic Aberration.
Declaration
public const string ChromaticAberration = "_CHROMATIC_ABERRATION"
Field Value
Type | Description |
---|---|
string |
DBufferMRT1
Keyword used for first target in the DBuffer.
Declaration
public const string DBufferMRT1 = "_DBUFFER_MRT1"
Field Value
Type | Description |
---|---|
string |
DBufferMRT2
Keyword used for second target in the DBuffer.
Declaration
public const string DBufferMRT2 = "_DBUFFER_MRT2"
Field Value
Type | Description |
---|---|
string |
DBufferMRT3
Keyword used for third target in the DBuffer.
Declaration
public const string DBufferMRT3 = "_DBUFFER_MRT3"
Field Value
Type | Description |
---|---|
string |
DEBUG_DISPLAY
Keyword used for Debug Display.
Declaration
public const string DEBUG_DISPLAY = "DEBUG_DISPLAY"
Field Value
Type | Description |
---|---|
string |
DIRLIGHTMAP_COMBINED
Keyword used for combined directional Lightmaps.
Declaration
public const string DIRLIGHTMAP_COMBINED = "DIRLIGHTMAP_COMBINED"
Field Value
Type | Description |
---|---|
string |
DOWNSAMPLING_SIZE_16
Keyword used for sixteenth size downsampling.
Declaration
public const string DOWNSAMPLING_SIZE_16 = "DOWNSAMPLING_SIZE_16"
Field Value
Type | Description |
---|---|
string |
DOWNSAMPLING_SIZE_2
Keyword used for half size downsampling.
Declaration
public const string DOWNSAMPLING_SIZE_2 = "DOWNSAMPLING_SIZE_2"
Field Value
Type | Description |
---|---|
string |
DOWNSAMPLING_SIZE_4
Keyword used for quarter size downsampling.
Declaration
public const string DOWNSAMPLING_SIZE_4 = "DOWNSAMPLING_SIZE_4"
Field Value
Type | Description |
---|---|
string |
DOWNSAMPLING_SIZE_8
Keyword used for eighth size downsampling.
Declaration
public const string DOWNSAMPLING_SIZE_8 = "DOWNSAMPLING_SIZE_8"
Field Value
Type | Description |
---|---|
string |
DYNAMICLIGHTMAP_ON
Keyword used for dynamic Lightmaps.
Declaration
public const string DYNAMICLIGHTMAP_ON = "DYNAMICLIGHTMAP_ON"
Field Value
Type | Description |
---|---|
string |
DecalLayers
Keyword used for Decal Layers.
Declaration
public const string DecalLayers = "_DECAL_LAYERS"
Field Value
Type | Description |
---|---|
string |
DecalNormalBlendHigh
Keyword used for high quality normal reconstruction in Decals.
Declaration
public const string DecalNormalBlendHigh = "_DECAL_NORMAL_BLEND_HIGH"
Field Value
Type | Description |
---|---|
string |
DecalNormalBlendLow
Keyword used for low quality normal reconstruction in Decals.
Declaration
public const string DecalNormalBlendLow = "_DECAL_NORMAL_BLEND_LOW"
Field Value
Type | Description |
---|---|
string |
DecalNormalBlendMedium
Keyword used for medium quality normal reconstruction in Decals.
Declaration
public const string DecalNormalBlendMedium = "_DECAL_NORMAL_BLEND_MEDIUM"
Field Value
Type | Description |
---|---|
string |
DepthMsaa2
Keyword used for Multi Sampling Anti-Aliasing (MSAA) with 2 per pixel sample count.
Declaration
public const string DepthMsaa2 = "_DEPTH_MSAA_2"
Field Value
Type | Description |
---|---|
string |
DepthMsaa4
Keyword used for Multi Sampling Anti-Aliasing (MSAA) with 4 per pixel sample count.
Declaration
public const string DepthMsaa4 = "_DEPTH_MSAA_4"
Field Value
Type | Description |
---|---|
string |
DepthMsaa8
Keyword used for Multi Sampling Anti-Aliasing (MSAA) with 8 per pixel sample count.
Declaration
public const string DepthMsaa8 = "_DEPTH_MSAA_8"
Field Value
Type | Description |
---|---|
string |
DepthNoMsaa
Keyword used for no Multi Sampling Anti-Aliasing (MSAA).
Declaration
public const string DepthNoMsaa = "_DEPTH_NO_MSAA"
Field Value
Type | Description |
---|---|
string |
DisableTexture2DXArray
Keyword used for disabling Texture 2D Arrays.
Declaration
public const string DisableTexture2DXArray = "DISABLE_TEXTURE2D_X_ARRAY"
Field Value
Type | Description |
---|---|
string |
Distortion
Keyword used for Distortion.
Declaration
public const string Distortion = "_DISTORTION"
Field Value
Type | Description |
---|---|
string |
Dithering
Keyword used for Dithering.
Declaration
public const string Dithering = "_DITHERING"
Field Value
Type | Description |
---|---|
string |
EDITOR_VISUALIZATION
Keyword used for editor visualization.
Declaration
public const string EDITOR_VISUALIZATION = "EDITOR_VISUALIZATION"
Field Value
Type | Description |
---|---|
string |
EVALUATE_SH_MIXED
Keyword used for mixed Spherical Harmonic (SH) evaluation in URP Lit shaders.
Declaration
public const string EVALUATE_SH_MIXED = "EVALUATE_SH_MIXED"
Field Value
Type | Description |
---|---|
string |
EVALUATE_SH_VERTEX
Keyword used for vertex Spherical Harmonic (SH) evaluation in URP Lit shaders.
Declaration
public const string EVALUATE_SH_VERTEX = "EVALUATE_SH_VERTEX"
Field Value
Type | Description |
---|---|
string |
EasuRcasAndHDRInput
Keyword used for Robust Contrast-Adaptive Sharpening (RCAS) when doing upsampling, after EASU has ran and with HDR Dsiplay output.
Declaration
public const string EasuRcasAndHDRInput = "_EASU_RCAS_AND_HDR_INPUT"
Field Value
Type | Description |
---|---|
string |
FilmGrain
Keyword used for Film Grain.
Declaration
public const string FilmGrain = "_FILM_GRAIN"
Field Value
Type | Description |
---|---|
string |
FoveatedRenderingNonUniformRaster
Keyword used for foveated rendering.
Declaration
public const string FoveatedRenderingNonUniformRaster = "_FOVEATED_RENDERING_NON_UNIFORM_RASTER"
Field Value
Type | Description |
---|---|
string |
Fxaa
Keyword used for Fast Approximate Anti-aliasing (FXAA).
Declaration
public const string Fxaa = "_FXAA"
Field Value
Type | Description |
---|---|
string |
FxaaAndGamma20
Keyword used for Fast Approximate Anti-aliasing (FXAA) with Gamma 2.0 encoding.
Declaration
public const string FxaaAndGamma20 = "_FXAA_AND_GAMMA_20"
Field Value
Type | Description |
---|---|
string |
Gamma20
Keyword used for Gamma 2.0.
Declaration
public const string Gamma20 = "_GAMMA_20"
Field Value
Type | Description |
---|---|
string |
HDRGrading
Keyword used for HDR Color Grading.
Declaration
public const string HDRGrading = "_HDR_GRADING"
Field Value
Type | Description |
---|---|
string |
HighQualitySampling
Keyword used for high quality sampling for Depth Of Field.
Declaration
public const string HighQualitySampling = "_HIGH_QUALITY_SAMPLING"
Field Value
Type | Description |
---|---|
string |
LIGHTMAP_ON
Keyword used for Lightmaps.
Declaration
public const string LIGHTMAP_ON = "LIGHTMAP_ON"
Field Value
Type | Description |
---|---|
string |
LOD_FADE_CROSSFADE
Keyword used for LOD Crossfade.
Declaration
public const string LOD_FADE_CROSSFADE = "LOD_FADE_CROSSFADE"
Field Value
Type | Description |
---|---|
string |
LightCookies
Keyword used for Light Cookies.
Declaration
public const string LightCookies = "_LIGHT_COOKIES"
Field Value
Type | Description |
---|---|
string |
LightLayers
Keyword used for Light Layers.
Declaration
public const string LightLayers = "_LIGHT_LAYERS"
Field Value
Type | Description |
---|---|
string |
LightmapShadowMixing
Keyword used for mixing lightmap shadows.
Declaration
public const string LightmapShadowMixing = "LIGHTMAP_SHADOW_MIXING"
Field Value
Type | Description |
---|---|
string |
LinearToSRGBConversion
Keyword used for Linear to SRGB conversions.
Declaration
public const string LinearToSRGBConversion = "_LINEAR_TO_SRGB_CONVERSION"
Field Value
Type | Description |
---|---|
string |
MainLightShadowCascades
Keyword used for shadows with cascades.
Declaration
public const string MainLightShadowCascades = "_MAIN_LIGHT_SHADOWS_CASCADE"
Field Value
Type | Description |
---|---|
string |
MainLightShadowScreen
Keyword used for screen space shadows.
Declaration
public const string MainLightShadowScreen = "_MAIN_LIGHT_SHADOWS_SCREEN"
Field Value
Type | Description |
---|---|
string |
MainLightShadows
Keyword used for shadows without cascades.
Declaration
public const string MainLightShadows = "_MAIN_LIGHT_SHADOWS"
Field Value
Type | Description |
---|---|
string |
MixedLightingSubtractive
Keyword used for Mixed Lights in Subtractive lighting mode.
Declaration
public const string MixedLightingSubtractive = "_MIXED_LIGHTING_SUBTRACTIVE"
Field Value
Type | Description |
---|---|
string |
PaniniGeneric
Keyword used for generic Panini Projection.
Declaration
public const string PaniniGeneric = "_GENERIC"
Field Value
Type | Description |
---|---|
string |
PaniniUnitDistance
Keyword used for unit distance Panini Projection.
Declaration
public const string PaniniUnitDistance = "_UNIT_DISTANCE"
Field Value
Type | Description |
---|---|
string |
PointSampling
Keyword used for Point sampling when doing upsampling.
Declaration
public const string PointSampling = "_POINT_SAMPLING"
Field Value
Type | Description |
---|---|
string |
Rcas
Keyword used for Robust Contrast-Adaptive Sharpening (RCAS) when doing upsampling.
Declaration
public const string Rcas = "_RCAS"
Field Value
Type | Description |
---|---|
string |
ReflectionProbeBlending
Keyword used for Reflection probe blending.
Declaration
public const string ReflectionProbeBlending = "_REFLECTION_PROBE_BLENDING"
Field Value
Type | Description |
---|---|
string |
ReflectionProbeBoxProjection
Keyword used for Box Projection with Reflection Probes.
Declaration
public const string ReflectionProbeBoxProjection = "_REFLECTION_PROBE_BOX_PROJECTION"
Field Value
Type | Description |
---|---|
string |
RenderPassEnabled
Keyword used for RenderPass.
Declaration
public const string RenderPassEnabled = "_RENDER_PASS_ENABLED"
Field Value
Type | Description |
---|---|
string |
SCREEN_COORD_OVERRIDE
Keyword used for applying scale and bias.
Declaration
public const string SCREEN_COORD_OVERRIDE = "SCREEN_COORD_OVERRIDE"
Field Value
Type | Description |
---|---|
string |
ScreenSpaceOcclusion
Keyword used for Screen Space Occlusion, such as Screen Space Ambient Occlusion (SSAO).
Declaration
public const string ScreenSpaceOcclusion = "_SCREEN_SPACE_OCCLUSION"
Field Value
Type | Description |
---|---|
string |
ShadowsShadowMask
Keyword used for Shadowmask.
Declaration
public const string ShadowsShadowMask = "SHADOWS_SHADOWMASK"
Field Value
Type | Description |
---|---|
string |
SmaaHigh
Keyword used for high quality Subpixel Morphological Anti-aliasing (SMAA).
Declaration
public const string SmaaHigh = "_SMAA_PRESET_HIGH"
Field Value
Type | Description |
---|---|
string |
SmaaLow
Keyword used for low quality Subpixel Morphological Anti-aliasing (SMAA).
Declaration
public const string SmaaLow = "_SMAA_PRESET_LOW"
Field Value
Type | Description |
---|---|
string |
SmaaMedium
Keyword used for medium quality Subpixel Morphological Anti-aliasing (SMAA).
Declaration
public const string SmaaMedium = "_SMAA_PRESET_MEDIUM"
Field Value
Type | Description |
---|---|
string |
SoftShadows
Keyword used for soft shadows.
Declaration
public const string SoftShadows = "_SHADOWS_SOFT"
Field Value
Type | Description |
---|---|
string |
SoftShadowsHigh
Keyword used for high quality soft shadows.
Declaration
public const string SoftShadowsHigh = "_SHADOWS_SOFT_HIGH"
Field Value
Type | Description |
---|---|
string |
SoftShadowsLow
Keyword used for low quality soft shadows.
Declaration
public const string SoftShadowsLow = "_SHADOWS_SOFT_LOW"
Field Value
Type | Description |
---|---|
string |
SoftShadowsMedium
Keyword used for medium quality soft shadows.
Declaration
public const string SoftShadowsMedium = "_SHADOWS_SOFT_MEDIUM"
Field Value
Type | Description |
---|---|
string |
TonemapACES
Keyword used for ACES Tonemapping.
Declaration
public const string TonemapACES = "_TONEMAP_ACES"
Field Value
Type | Description |
---|---|
string |
TonemapNeutral
Keyword used for Neutral Tonemapping.
Declaration
public const string TonemapNeutral = "_TONEMAP_NEUTRAL"
Field Value
Type | Description |
---|---|
string |
USE_UNITY_CROSSFADE
Keyword used for LOD Crossfade with ShaderGraph shaders.
Declaration
public const string USE_UNITY_CROSSFADE = "USE_UNITY_CROSSFADE"
Field Value
Type | Description |
---|---|
string |
UseDrawProcedural
Keyword used for Drawing procedurally.
Declaration
public const string UseDrawProcedural = "_USE_DRAW_PROCEDURAL"
Field Value
Type | Description |
---|---|
string |
UseRGBM
Keyword used for RGBM format for Bloom.
Declaration
public const string UseRGBM = "_USE_RGBM"
Field Value
Type | Description |
---|---|
string |
WriteRenderingLayers
Keyword used for writing Rendering Layers.
Declaration
public const string WriteRenderingLayers = "_WRITE_RENDERING_LAYERS"
Field Value
Type | Description |
---|---|
string |
XROcclusionMeshCombined
Keyword used for rendering a combined mesh for XR.
Declaration
public const string XROcclusionMeshCombined = "XR_OCCLUSION_MESH_COMBINED"
Field Value
Type | Description |
---|---|
string |
_ALPHAMODULATE_ON
Keyword used for Alpha modulate.
Declaration
public const string _ALPHAMODULATE_ON = "_ALPHAMODULATE_ON"
Field Value
Type | Description |
---|---|
string |
_ALPHAPREMULTIPLY_ON
Keyword used for Alpha premultiply.
Declaration
public const string _ALPHAPREMULTIPLY_ON = "_ALPHAPREMULTIPLY_ON"
Field Value
Type | Description |
---|---|
string |
_ALPHATEST_ON
Keyword used for Alpha testing.
Declaration
public const string _ALPHATEST_ON = "_ALPHATEST_ON"
Field Value
Type | Description |
---|---|
string |
_CLEARCOAT
Keyword used for Clear Coat.
Declaration
public const string _CLEARCOAT = "_CLEARCOAT"
Field Value
Type | Description |
---|---|
string |
_CLEARCOATMAP
Keyword used for Clear Coat maps.
Declaration
public const string _CLEARCOATMAP = "_CLEARCOATMAP"
Field Value
Type | Description |
---|---|
string |
_DEFERRED_FIRST_LIGHT
Keyword used for the first light when rendering with the Deferred rendering path.
Declaration
public const string _DEFERRED_FIRST_LIGHT = "_DEFERRED_FIRST_LIGHT"
Field Value
Type | Description |
---|---|
string |
_DEFERRED_MAIN_LIGHT
Keyword used for the main light when rendering with the Deferred rendering path.
Declaration
public const string _DEFERRED_MAIN_LIGHT = "_DEFERRED_MAIN_LIGHT"
Field Value
Type | Description |
---|---|
string |
_DEFERRED_MIXED_LIGHTING
Keyword used for Mixed Lighting when rendering with the Deferred rendering path.
Declaration
public const string _DEFERRED_MIXED_LIGHTING = "_DEFERRED_MIXED_LIGHTING"
Field Value
Type | Description |
---|---|
string |
_DEFERRED_STENCIL
Keyword used for stencils when rendering with the Deferred rendering path.
Declaration
public const string _DEFERRED_STENCIL = "_DEFERRED_STENCIL"
Field Value
Type | Description |
---|---|
string |
_DETAIL_MULX2
Keyword used for 2x detail mapping.
Declaration
public const string _DETAIL_MULX2 = "_DETAIL_MULX2"
Field Value
Type | Description |
---|---|
string |
_DETAIL_SCALED
Keyword used for scaled detail mapping.
Declaration
public const string _DETAIL_SCALED = "_DETAIL_SCALED"
Field Value
Type | Description |
---|---|
string |
_DIRECTIONAL
Keyword used for Directional lights.
Declaration
public const string _DIRECTIONAL = "_DIRECTIONAL"
Field Value
Type | Description |
---|---|
string |
_EMISSION
Keyword used for Emission.
Declaration
public const string _EMISSION = "_EMISSION"
Field Value
Type | Description |
---|---|
string |
_GBUFFER_NORMALS_OCT
Keyword used for Accurate G-buffer normals when rendering with the Deferred rendering path.
Declaration
public const string _GBUFFER_NORMALS_OCT = "_GBUFFER_NORMALS_OCT"
Field Value
Type | Description |
---|---|
string |
_NORMALMAP
Keyword used for Normal maps.
Declaration
public const string _NORMALMAP = "_NORMALMAP"
Field Value
Type | Description |
---|---|
string |
_POINT
Keyword used for Point lights.
Declaration
public const string _POINT = "_POINT"
Field Value
Type | Description |
---|---|
string |
_RECEIVE_SHADOWS_OFF
Keyword used for receiving shadows.
Declaration
public const string _RECEIVE_SHADOWS_OFF = "_RECEIVE_SHADOWS_OFF"
Field Value
Type | Description |
---|---|
string |
_SPOT
Keyword used for Spot lights.
Declaration
public const string _SPOT = "_SPOT"
Field Value
Type | Description |
---|---|
string |
_SURFACE_TYPE_TRANSPARENT
Keyword used for opaque or transparent surface types.
Declaration
public const string _SURFACE_TYPE_TRANSPARENT = "_SURFACE_TYPE_TRANSPARENT"
Field Value
Type | Description |
---|---|
string |